-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
40 lines (36 loc) · 1.16 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
stages:
- build
- test
#- publish_dev
#- publish_latest
#- deploy_staging
#- deploy_prod
###############################################################################################
# Build stage #
###############################################################################################
build-backend:
image: mcr.microsoft.com/dotnet/sdk:6.0
stage: build
script:
- dotnet publish src/Portal/Portal.csproj -c Release
- cp -r src/Portal/bin/Release/net6.0/publish g-artefacts_dir/
artifacts:
expire_in: 30 mins
when: on_success
paths:
- g-artefacts_dir
unit-tests:
image: mcr.microsoft.com/dotnet/sdk:6.0
needs:
- build-backend
stage: test
script:
- dotnet test src/Tests/UnitTests/UnitTests.Services/UnitTests.Services.csproj
integration-tests:
image: mcr.microsoft.com/dotnet/sdk:6.0
needs:
- build-backend
stage: test
script:
- dotnet test src/Tests/IntegrationalTests.Services/IntegrationalTests.Services.csproj
- dotnet test src/Tests/IntegrationalTests.Controllers/IntegrationalTests.Controllers.csproj