-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
43 lines (39 loc) · 987 Bytes
/
.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
stages:
- build
- test
build:web:
image: node:10.13.0
stage: build
script:
- "cd SloshyDoshMan.Web"
- "npm ci"
- "npm run build"
artifacts:
name: "$CI_JOB_NAME"
paths:
- SloshyDoshMan.Web/dist
build:client:
image: mcr.microsoft.com/dotnet/core/sdk:3.0
stage: build
script:
- "dotnet publish SloshyDoshMan.Client --output ./client"
artifacts:
name: "$CI_JOB_NAME"
paths:
- client
build:service:
image: mcr.microsoft.com/dotnet/core/sdk:3.0
stage: build
script:
- "dotnet publish SloshyDoshMan.Service --output ./service"
artifacts:
name: "$CI_JOB_NAME"
paths:
- service
test:
image: mcr.microsoft.com/dotnet/core/sdk:3.0
stage: test
script:
- "cd SloshyDoshMan.Tests"
- "dotnet test --collect:\"XPlat Code Coverage\""
- "head -3 ./TestResults/*/coverage.cobertura.xml"