-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
61 lines (52 loc) · 1.92 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
54
55
56
57
58
59
60
61
stages:
- build
- test
- deploy
buildAgentManagerService:
stage: build
image: artifactory.mars.haw-hamburg.de:5000/microsoft/dotnet:1.1.0-sdk-projectjson
script:
- cd 01-Code/LIFEv2
- dotnet restore .
- cd 01-Code/LIFEv2/LIFE Services/AgentManagerService
- dotnet build
testAgentManagerService:
stage: test
image: artifactory.mars.haw-hamburg.de:5000/microsoft/dotnet:1.1.0-sdk-projectjson
script:
- cd 01-Code/LIFEv2
- dotnet restore -s https://artifactory.mars.haw-hamburg.de/artifactory/api/nuget/nuget-virtual/ .
- cd 01-Code/LIFEv2/LIFE Services/AgentManagerService
- dotnet test
packAndPushAgentManagerService:
stage: deploy
image: artifactory.mars.haw-hamburg.de:5000/mono:4.6.2.16
script:
- cd 01-Code/LIFEv2/LIFE Services/AgentManagerService
- dotnet pack -c Release --version-suffix $CI_PIPELINE_ID
- mono ../../.nuget/NuGet.exe push ./bin/Release/AgentManagerService.2.0.0-$CI_PIPELINE_ID.nupkg -Source Artifactory
- rm ./bin/Release/AgentManagerService.2.0.0-$CI_PIPELINE_ID.nupkg
buildASC:
stage: build
image: artifactory.mars.haw-hamburg.de:5000/microsoft/dotnet:1.1.0-sdk-projectjson
script:
- cd 01-Code/LIFEv2
- dotnet restore -s https://artifactory.mars.haw-hamburg.de/artifactory/api/nuget/nuget-virtual/ .
- cd 01-Code/LIFEv2/T-Components/ASC
- dotnet build
testASC:
stage: test
image: artifactory.mars.haw-hamburg.de:5000/microsoft/dotnet:1.1.0-sdk-projectjson
script:
- cd 01-Code/LIFEv2
- dotnet restore .
- cd 01-Code/LIFEv2/T-Components/ASC
- dotnet test
packAndPushASC:
stage: deploy
image: artifactory.mars.haw-hamburg.de:5000/mono:4.6.2.16
script:
- cd 01-Code/LIFEv2/T-Components/ASC
- dotnet pack -c Release --version-suffix $CI_PIPELINE_ID
- mono ../../.nuget/NuGet.exe push ./bin/Release/ASC.2.0.0-$CI_PIPELINE_ID.nupkg -Source Artifactory
- rm ./bin/Release/ASC.2.0.0-$CI_PIPELINE_ID.nupkg