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