-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
272 lines (248 loc) · 7.03 KB
/
.travis.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
# Travis Configuration
services:
- mysql
- docker
env:
global:
- AWS_DEFAULT_REGION=us-east-1
- CC_TEST_REPORTER_ID=3e42f82fe2b2f0601cafe4eca93a8c9d296dfa8f7af67d2e846a182a834bde59
- CI_NODE_TOTAL=6
- PATH=~/bin:${PATH}
- DOCKER_ID=hailstorm3
- JRUBY_OPTS='-J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-Xss2m -Xcompile.invokedynamic=false'
stages:
- name: test
if: (branch NOT IN (master, develop)) AND (tag IS blank)
- name: coverage
if: branch = develop
- name: validate
if: branch = master AND type = pull_request
- name: publish
if: branch = master AND type = pull_request
- name: tag
if: branch = master AND type = push
jobs:
include:
# ------------ TEST STAGE ----------------------
- stage: test
name: "hailstorm-gem test"
language: ruby
rvm: jruby-9.2.11.1
jdk: openjdk8
install:
- make PROJECT=gem install
script:
- make PROJECT=gem test
- stage: test
name: "hailstorm-cli test"
language: ruby
rvm: jruby-9.2.11.1
jdk: openjdk8
before_install:
- make PROJECT=gem FORCE=yes install build local_publish
install:
- make PROJECT=cli install
script:
- make PROJECT=cli test
- stage: test
name: "hailstorm-api test"
language: ruby
rvm: jruby-9.2.11.1
jdk: openjdk8
before_install:
- make PROJECT=gem FORCE=yes install build local_publish
install:
- make PROJECT=api install
script:
- make PROJECT=api test
- stage: test
name: "hailstorm-file-server test"
language: java
jdk: openjdk8
install:
- make PROJECT=file-server install
script:
- make PROJECT=file-server test
- stage: test
name: "hailstorm-client-exchange test"
language: java
jdk: openjdk8
install:
- make PROJECT=client-exchange install
script:
- make PROJECT=client-exchange test
- stage: test
name: "hailstorm-web-client test"
language: node_js
node_js: lts/dubnium
install:
- make PROJECT=web-client install
script:
- make PROJECT=web-client test
# ------------ COVERAGE -----------------------------------
- stage: coverage
name: "hailstorm-gem coverage"
language: ruby
rvm: jruby-9.2.11.1
jdk: openjdk8
env:
- CI_NODE_INDEX=0
before_install:
- pyenv global 3.7.1
- make install_aws
install:
- make PROJECT=gem FORCE=yes install
script:
- make PROJECT=gem coverage
after_script:
- make PROJECT=gem cc_test_report
- stage: coverage
name: "hailstorm-cli coverage"
language: ruby
rvm: jruby-9.2.11.1
jdk: openjdk8
env:
- CI_NODE_INDEX=1
before_install:
- pyenv global 3.7.1
- make install_aws
- make PROJECT=gem FORCE=yes install build local_publish
install:
- make PROJECT=cli FORCE=yes install
script:
- make PROJECT=cli coverage
after_script:
- make PROJECT=cli cc_test_report
- stage: coverage
name: "hailstorm-api coverage"
language: ruby
rvm: jruby-9.2.11.1
jdk: openjdk8
env:
- CI_NODE_INDEX=2
before_install:
- pyenv global 3.7.1
- make install_aws
- make PROJECT=gem FORCE=yes install build local_publish
install:
- make PROJECT=api FORCE=yes install
script:
- make PROJECT=api coverage
after_script:
- make PROJECT=api cc_test_report
- stage: coverage
name: "hailstorm-file-server coverage"
language: java
jdk: openjdk8
env:
- CI_NODE_INDEX=3
before_install:
- pyenv global 3.7.1
- make install_aws
install:
- make PROJECT=file-server FORCE=yes install
script:
- make PROJECT=file-server coverage
after_script:
- make PROJECT=file-server cc_test_report
- stage: coverage
name: "hailstorm-client-exchange coverage"
language: java
jdk: openjdk8
env:
- CI_NODE_INDEX=4
before_install:
- pyenv global 3.7.1
- make install_aws
install:
- make PROJECT=client-exchange FORCE=yes install
script:
- make PROJECT=client-exchange coverage
after_script:
- make PROJECT=client-exchange cc_test_report
- stage: coverage
name: "hailstorm-web-client coverage"
language: node_js
node_js: lts/dubnium
env:
- CI_NODE_INDEX=5
before_install:
- pyenv global 3.7.1
- make install_aws
install:
- make PROJECT=web-client FORCE=yes install
script:
- make PROJECT=web-client coverage
after_script:
- make PROJECT=web-client cc_test_report
# ------------ VALIDATE ----------------------------------
- stage: validate
name: "hailstorm validate"
language: minimal
script:
- make PROJECT=gem validate
- make PROJECT=cli validate
- make PROJECT=api validate
- make PROJECT=file-server validate
- make PROJECT=client-exchange validate
- make PROJECT=web-client validate
# ------------ PUBLISH -----------------------------------
- stage: publish
name: "hailstorm-gem publish"
language: ruby
rvm: jruby-9.2.11.1
jdk: openjdk8
install:
- make PROJECT=gem install
script:
- make PROJECT=gem integration
- stage: publish
name: "hailstorm-cli publish"
language: ruby
rvm: jruby-9.2.11.1
jdk: openjdk8
env:
- TAG_VALUE="Hailstorm Site - cli"
before_install:
- pyenv global 3.7.1
- make cli_integration_before_install
install:
- make COMPOSE=cli-verify cli_integration_install
script:
- make PROJECT=cli integration
after_script:
- make COMPOSE=cli-verify cli_integration_after_script
after_success:
- make PROJECT=cli publish
- stage: publish
name: "hailstorm-web-client publish"
language: java
jdk: openjdk8
env:
- MOZ_HEADLESS=1
- TAG_VALUE="Hailstorm Site - web-client"
- JRUBY=jruby-9.2.11.1
- NODE_VERSION=lts/dubnium
addons:
firefox: latest
before_install:
- pyenv global 3.7.1
- nvm install ${NODE_VERSION}
- rvm install ${JRUBY}
- make web_integration_before_install
install:
- nvm use ${NODE_VERSION}
- rvm use ${JRUBY}
- make COMPOSE=web-client-verify web_integration_install
script:
- make COMPOSE=web-client-verify web_integration_script
after_script:
- make COMPOSE=web-client-verify web_integration_after_script
after_success:
- make publish_web_packages
# ------------ TAG -----------------------------------
- stage: tag
name: "hailstorm-sdk tag"
language: minimal
script:
- make release_tag