-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.gitlab-ci.yml
102 lines (96 loc) · 3.13 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
variables:
GIT_SUBMODULE_STRATEGY: normal
stages:
- deploy
- testLogic
- testUI
dev-deploy:
environment:
name: DEV
url: http://dev.southwind.firm/
stage: deploy
variables:
ASPNETCORE_ENVIRONMENT: Dev
script:
- cd Southwind.React/; yarn install --ignore-optional; cd ..
- dotnet build Southwind.sln /p:Configuration=Release /p:Platform=x64 /p:VisualStudioVersion=15.0 /m
- cd Southwind.React/; yarn run build; cd ..
- dotnet publish Southwind.React/Southwind.React.csproj -c Release --runtime win7-x64 /p:EnableMSDeployAppOffline=true /p:PublishProfile=Dev /p:Username=$env:MSBUILD_USER /p:Password=$env:MSBUILD_PASSWORD /v:normal
- dotnet test Southwind.Test.Environment/Southwind.Test.Environment.csproj -c Release
tags:
- desrv148
except:
- TEST
- LIVE
unit-tests-logic:
environment:
name: DEV
url: http://dev.southwind.firm/
stage: testLogic
variables:
ASPNETCORE_ENVIRONMENT: Dev
script:
- dotnet test Southwind.Test.Logic/Southwind.Test.Logic.csproj -c Release
allow_failure: true
tags:
- desrv148
except:
- TEST
- LIVE
unit-tests-ui:
environment:
name: DEV
url: http://dev.southwind.firm/
stage: testUI
variables:
ASPNETCORE_ENVIRONMENT: dev
script:
- dotnet test Southwind.Test.React/Southwind.Test.React.csproj -c Release
allow_failure: true
tags:
- desrv148
except:
- TEST
- LIVE
test-deploy:
environment:
name: TEST
url: http://test.southwind.firm
stage: deploy
variables:
ASPNETCORE_ENVIRONMENT: test
script:
- cd Southwind.React/; yarn install --ignore-optional; cd ..
- dotnet build Southwind.sln /p:Configuration=Release /p:Platform=x64 /p:VisualStudioVersion=15.0 /m
- cd Southwind.React/; yarn run build; cd ..
- dotnet publish Southwind.React/Southwind.React.csproj -c Release --runtime win7-x64 /p:EnableMSDeployAppOffline=true /p:PublishProfile=Test /p:Username=$env:MSBUILD_USER /p:Password=$env:MSBUILD_PASSWORD /v:m
- cd Southwind.Terminal/bin/Release/netcoreapp2.1/
- dotnet Southwind.Terminal.dll sql
- dotnet Southwind.Terminal.dll csharp
- dotnet Southwind.Terminal.dll auth
- cd ../../../..
tags:
- desrv148
only:
- TEST
live-deploy:
environment:
name: LIVE
url: http://live.southwind.firm
stage: deploy
variables:
ASPNETCORE_ENVIRONMENT: live
script:
- cd Southwind.React/; yarn install --ignore-optional; cd ..
- dotnet build Southwind.sln /p:Configuration=Release /p:Platform=x64 /p:VisualStudioVersion=15.0 /m
- cd Southwind.React/; yarn run build; cd ..
- dotnet publish Southwind.React/Southwind.React.csproj -c Release --runtime win7-x64 /p:EnableMSDeployAppOffline=true /p:PublishProfile=Live /p:Username=$env:MSBUILD_USER /p:Password=$env:MSBUILD_PASSWORD /v:m
- cd Southwind.Terminal/bin/Release/netcoreapp2.1/
- dotnet Southwind.Terminal.dll sql
- dotnet Southwind.Terminal.dll csharp
- dotnet Southwind.Terminal.dll auth
- cd ../../../..
tags:
- desrv148
only:
- LIVE