-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
65 lines (57 loc) · 1.89 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
62
63
64
65
#================================
# Stages
#================================
stages:
- build
- test
- deploy
#================================
# Build
#================================
build:
stage: build
only:
- master
script:
- 'C:\Tools\nuget.exe restore 3wBetManager-API.sln'
- '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe" 3wBetManager-API.sln /p:Configuration=Release'
before_script:
- C:\Tools\BismiAppRunner\BismiAppRunner.exe STOP 3wBetManager-API
- rmdir /s "C:\GitLab-Runner\builds\Sns1WAaE\0\RomanLeichnig\backend-bet-manager-group2"
artifacts:
paths:
- 3wBetManager-API/
- Command/
- Test/
#================================
# Test
#================================
test:
stage: test
only:
- master
script:
- '"C:\Program Files (x86)\NUnit.org\nunit-console\nunit3-console.exe" "Test\bin\Release\Test.dll"'
dependencies:
- build
artifacts:
paths:
- 3wBetManager-API/
- Command/
#================================
# Deploy
#================================
deploy:
stage: deploy
only:
- master
script:
- 'ECHO Start Deploy'
- 'C:\Tools\BismiAppRunner\BismiAppRunner.exe STOP 3wBetManager-API'
- 'C:\Tools\BismiAppRunner\BismiAppRunner.exe START C:\GitLab-Runner\builds\Sns1WAaE\0\RomanLeichnig\backend-bet-manager-group2\3wBetManager-API\bin\Release\\ 3wBetManager-API.exe'
- 'ECHO End Deploy'
- 'ECHO Satrt integration test'
- '"C:\Users\Administrator\AppData\Roaming\npm\newman.cmd" run postman\3wbetManager.postman_collection.json -e postman\PROD.postman_environment.json'
- 'ECHO End integration test'
dependencies:
- test