-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
46 lines (41 loc) · 1.23 KB
/
.gitlab-ci.yml
File metadata and controls
46 lines (41 loc) · 1.23 KB
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
variables:
MSBUILD: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\bin\msbuild.exe'
VSTEST: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\IDE\Extensions\TestPlatform\vstest.console.exe'
BUILD_CONF: Release
NUGET_FOLDER: nuget
BuildType: V2
stages:
- build
- test
- deploy
cache: &global_cache
key: nuget
paths:
- $NUGET_FOLDER
build:
tags: [windows]
except: [tags]
stage: build
script:
- nuget restore -PackagesDirectory $NUGET_FOLDER
- "& $MSBUILD /m /p:Configuration=Release /p:RestorePackages=false /p:PackageOutputPath=..\\..\\artifacts\\nuget\\"
artifacts:
paths:
- "**\\bin\\"
- "**\\obj\\"
- ".\\artifacts\\nuget\\"
expire_in: 5 days
test:
tags: [windows]
except: [tags]
stage: test
needs: [build]
dependencies: [build]
cache:
<<: *global_cache
policy: pull
script:
- "& $VSTEST **\\bin\\**\\*.Tests.dll --ResultsDirectory:'./artifacts/test/' --Logger:'junit;LogFileName=./results/{assembly}-test-result.xml' --Collect:'XPlat Code Coverage' -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=cobertura"
artifacts:
reports:
junit: ./artifacts/test/results/*