-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
109 lines (90 loc) · 1.82 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
103
104
105
106
107
108
109
stages:
- load
- test
- package
- deploy
.env_test: &env_test
environment:
name: test
url: http://test.eduard.win
only:
- master
tags:
- test
.env_preprod: &env_preprod
when: manual
environment:
name: preprod
url: http://preprod.eduard.win
only:
- preprod
tags:
- preprod
.env_prod: &env_prod
environment:
name: prod
url: http://prod.eduard.win
only:
- prod
tags:
- prod
.script_load: &script_load
stage: load
script: csession ensemble "##class(isc.git.GitLab).loadDiff()"
artifacts:
paths:
- diff.xml
.script_test: &script_test
stage: test
script: csession ensemble "##class(isc.git.GitLab).test()"
artifacts:
paths:
- tests.html
.script_package_client: &script_package_client
stage: package
script: envsubst < client/index.html > index.html
artifacts:
paths:
- index.html
.script_package_server: &script_package_server
stage: package
script: csession ensemble "##class(isc.git.GitLab).package()"
artifacts:
paths:
- full.xml
.script_deploy_client: &script_deploy_client
stage: deploy
script: cp -f index.html /var/www/html/index.html
load test:
<<: *env_test
<<: *script_load
test test:
<<: *env_test
<<: *script_test
package client test:
<<: *env_test
<<: *script_package_client
package server test:
<<: *env_test
<<: *script_package_server
deploy test:
<<: *env_test
<<: *script_deploy_client
load preprod:
<<: *env_preprod
<<: *script_load
package client preprod:
<<: *env_preprod
<<: *script_package_client
deploy preprod:
<<: *env_preprod
<<: *script_deploy_client
load prod:
<<: *env_prod
<<: *script_load
package client prod:
<<: *env_prod
<<: *script_package_client
deploy prod:
<<: *env_prod
<<: *script_deploy_client