-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
52 lines (46 loc) · 1.13 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
stages:
- docs
- build
- test
.dotnet_template:
image: mcr.microsoft.com/dotnet/sdk:2.1
before_script:
- apt-get update
- apt-get install nuget build-essential -y
pages:
stage: docs
image: registry.gitlab.com/pages/hugo/hugo:latest
script:
- apk add make
- make docs/downloadTheme
- make docs/build
- mv docs/public public/
artifacts:
paths:
- public/
only:
- develop
package:
stage: build
extends: .dotnet_template
script:
- make updateVersion
- make build
artifacts:
paths:
- PerformanceRecorder/bin/Release/*.nupkg
expire_in: 1 day
test:
stage: test
extends: .dotnet_template
script:
- 'dotnet test PerformanceRecorderTest/PerformanceRecorderTest.csproj --test-adapter-path:. --logger:"junit;LogFilePath=..\artifacts\{assembly}-test-result.xml;MethodFormat=Class;FailureBodyFormat=Verbose"'
artifacts:
reports:
junit:
- ./**/*test-result.xml
example:
stage: test
extends: .dotnet_template
script:
- dotnet run --project ExampleApplication/ExampleApplication.csproj