-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
77 lines (74 loc) · 2.08 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
71
72
73
74
75
76
77
stages:
- build
- test
- deploy
build_job:
stage: build
script:
- 'set MSBUILDDISABLENODEREUSE=1'
- ''
- 'echo Restoring NuGet Packages...'
- '"c:\nuget\nuget.exe" restore "Queste.sln"'
- 'echo NuGet Packages restored'
- ''
- 'echo Release build...'
- '"C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe" /consoleloggerparameters:ErrorsOnly /maxcpucount /nologo /property:Configuration=Release /verbosity:quiet /m:4 /nr:false "Queste.sln"'
- 'echo Build completed'
- ''
- 'echo Cleaning up..'
- ''
- 'DEL /Q "."'
- ''
- 'echo Tests cleaned'
test_job:
stage: test
script:
- 'set MSBUILDDISABLENODEREUSE=1'
- ''
- 'echo Restoring NuGet Packages...'
- '"c:\nuget\nuget.exe" restore "Queste.sln"'
- 'echo NuGet Packages restored'
- ''
- 'echo Release build...'
- '"C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe" /consoleloggerparameters:ErrorsOnly /maxcpucount /nologo /property:Configuration=Release /verbosity:quiet /m:4 /nr:false "Queste.sln"'
- 'echo Build completed'
- ''
- 'echo Running Tests...'
- '"C:\xunit\xunit.console.exe" ".\Queste.Test\bin\Release\Queste.Test.dll"'
- 'echo Tests complete'
- ''
- 'echo Cleaning up..'
- ''
- 'DEL /Q "."'
- ''
- 'echo Tests cleaned'
deploy_job:
stage: deploy
script:
- 'set MSBUILDDISABLENODEREUSE=1'
- ''
- 'echo Restoring NuGet Packages...'
- '"c:\nuget\nuget.exe" restore "Queste.sln"'
- 'echo NuGet Packages restored'
- ''
- 'echo Release build...'
- '"C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe" /consoleloggerparameters:ErrorsOnly /maxcpucount /nologo /property:Configuration=Release /verbosity:quiet /m:4 /nr:false "Queste.sln"'
- 'echo Build completed'
- ''
- 'echo Deploying NuGet Package...'
- ''
- 'cd .\Queste'
- ''
- '"c:\nuget\nuget.exe" pack "Queste.csproj" -Prop Configuration=Release'
- ''
- '"c:\nuget\nuget.exe" push Queste.*.nupkg -Source https://www.nuget.org/api/v2/package'
- 'echo NuGet Package deployed'
- ''
- 'cd ..'
- ''
- 'echo Cleaning up..'
- ''
- 'DEL /Q "."'
- ''
- 'echo Tests cleaned'
when: on_success