This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 352
/
.gitlab-ci.yml
70 lines (65 loc) · 1.76 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
stages:
- build-dotnet
- build-mono
- test-dotnet
- test-mono
build-dotnet:
stage: build-dotnet
#------------------------------------------------------------------------------------------
# microsoft/dotnet:2.2-sdk
# image: mcr.microsoft.com/dotnet/core/sdk:2.2
# image: microsoft/dotnet:latest
#------------------------------------------------------------------------------------------
image: microsoft/dotnet:2.2-sdk
before_script:
- "cd source"
- "dotnet restore"
- "cd .."
- "cd samples"
- "dotnet restore"
- "cd .."
script:
- "cd source"
- "dotnet build"
- "cd .."
- "cd samples"
- "dotnet build"
- "cd .."
build-mono:
stage: build-mono
image: mono:latest
before_script:
script:
- nuget restore ./source/Xamarin.Auth-Library-VS2017.sln
- nuget restore ./source/Xamarin.Auth-Library-VS2019.sln
- msbuild
/p:Configuration="Release"
/p:Platform="Any CPU"
"./source/Xamarin.Auth-Library-VS2017.sln"
- !
- msbuild
/p:Configuration="Release"
/p:Platform="Any CPU"
"./source/Xamarin.Auth-Library-VS2019.sln"
- msbuild
/p:Configuration="Debug"
/p:Platform="Any CPU"
"./source/Xamarin.Auth-Library-VS2017.sln"
- !
- msbuild
/p:Configuration="Debug"
/p:Platform="Any CPU"
"./source/Xamarin.Auth-Library-VS2019.sln"
#test-dotnet:
# stage: test-dotnet
# image: microsoft/dotnet:latest
# script:
# - "cd $test"
# - "dotnet test"
#test-mono:
# stage: test-mono
# image: mono:latest
# script:
# - "cd $test"
# - "dotnet test"
# mono /root/.nuget/packages/nunit.consolerunner/3.9.0/tools/nunit3-console.exe Plugin.Tests/bin/Release/Plugin.Tests.dll