-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.old.yml
440 lines (401 loc) · 11.6 KB
/
.travis.old.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
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
# -----------------
# YAML Templates
# -----------------
# Cross-plateform
_cross_tests: &cross_tests
stage: Cross-platform tests
language: go
go: 1.12.x
env:
- GO111MODULE=on
cache:
directories:
- "$HOME/.cache/go-build"
- "$HOME/gopath/pkg"
script:
- go test -mod=vendor -v ./...
# Documentation deployment
_doc-deploy: &doc-deploy
stage: Deployments
language: node_js
node_js: 10
env: &doc-deploy-env
- NODE_ENV=production
- AWS_DEFAULT_REGION=us-west-2
- AWS_ACCESS_KEY_ID=AKIAIYAXFUAHXOWP2MJA
# AWS_SECRET_ACCESS_KEY
- secure: qzj0owa1ZC74eg3BBox1FWCBtDs7Xald1sfCjR52tV4/mpFu1sv5sSemzSzBfI0GYn5jAbPpm7DacmR8Y5mTxaIUXGi7mT041stjEEW3snubnsOLWxkGWpFpEZa2b8qlIxl/hzhv4wJ2rxxYCAwA9khOAc6uYunilL4yV0KCPoBD3fRYOktCNxaEbGCaFmlSphPBQYh867izCjSGNpn3kxst3+VuLE3RCikbZCuJvAZMSra4WxBcFqs6WytC5zykdkipb6O5US8koljqSdJgD1MOc0p4VrDmXum9IzBiK0omXbep3BPsorQBEvPCuHQQDk1HqJ+psKgLdwGX/nbaXHQ93smAMhUQOfF7rriYe7VeSrbHlVx/j/U7FMBoYG02efXOHH1jwO4njhQRNvbEAQnmky6my87NlCGnIUzkYeXogt+9/+MvkTDvfhYI6tVXEvoM/GSH7f12kr9gG4LSsI6PzJr8FPnp5+n+ZhqvqyEAJ3LUd/pTxAzNM+w405YeR29aeUdMkuhXHlM/lMfUR9RlnM216EM+fZH7lB2ueZV3m6AqDlIh29DRao9g6M3dkeWdtzFzZgVSrWtwhwZhmHTx6RXbz+SPDrwjQcEPuwMq8RIu9L+9/DW52vXv2u5VKHbszDWoelYza7EUbKcQ4y7NXaJV1+GfrJrpotQEScg=
cache:
npm: true
directories:
- $HOME/.cache/pip
addons:
apt:
packages:
- python
- python-pip
install:
- pip install awscli --upgrade --user
- npm ci
script:
- npm run doc-prepare
- npm run doc-build
deploy:
provider: script
script:
- npm run doc-upload
skip_cleanup: true
on:
all_branches: true
after_deploy:
- npm run doc-cloudfront
# ------------------------
# Jobs configuration
# ------------------------
jobs:
include:
- name: Documentation test
language: go
go: 1.15.x
script:
- docker-compose -f .ci/doc/docker-compose.yml run doc-tests node index
# -----------------------------------------------
# Linux amd64
# -----------------------------------------------
- name: Linux amd64 - Go 1.15.x (with coverage)
os: linux
dist: xenial
sudo: true
language: go
go: 1.15.x
cache:
directories:
- "$HOME/.cache/go-build"
- "$HOME/gopath/pkg"
env:
- GOOS=linux
- GOARCH=amd64
- GO111MODULE=on
script:
- bash .ci/test_with_coverage.sh
after_success:
- bash <(curl -s https://codecov.io/bash)
# -----------------------------------------------
# Linux i386
# -----------------------------------------------
- name: Linux i386 - Go 1.15.x
os: linux
dist: xenial
sudo: true
language: go
go: 1.15.x
cache:
directories:
- "$HOME/.cache/go-build"
- "$HOME/gopath/pkg"
script:
- export GOOS=linux
- export GOARCH=386
- go test -v ./...
- name: Linux i386 - Go 1.11.x
if: type = cron OR branch = master
os: linux
dist: xenial
sudo: true
language: go
go: 1.11.x
cache:
directories:
- "$HOME/.cache/go-build"
- "$HOME/gopath/pkg"
script:
- export GOOS=linux
- export GOARCH=386
- go test -v ./...
- name: Linux i386 - Go 1.10.x
if: type = cron OR branch = master
os: linux
dist: xenial
sudo: true
language: go
go: 1.10.x
cache:
directories:
- "$HOME/.gem/specs"
before_script:
- npm ci
- npm run doc-prepare
- $(npm bin)/kuzdoc iterate-repos:install --repos_path .doc/framework/.repos/
- $(npm bin)/kuzdoc framework:link -d /sdk/go/2/ -v 2 -b .doc/
script:
- gem install typhoeus
- cd .doc/framework/ && HYDRA_MAX_CONCURRENCY=20 ruby .ci/dead-links.rb -p src/sdk/go/2/
- name: Linux arm64 - Go 1.15.x
os: linux
dist: xenial
sudo: true
addons:
apt:
packages:
- qemu-user-static
language: go
go: 1.15.x
cache:
directories:
- "$HOME/.cache/go-build"
- "$HOME/gopath/pkg"
script:
- docker-compose -f .ci/doc/docker-compose.yml run doc-tests node index
- name: Linux armhf - Go 1.15.x
os: linux
dist: xenial
sudo: true
addons:
apt:
packages:
- qemu-user-static
language: go
go: 1.15.x
cache:
directories:
- "$HOME/.cache/go-build"
- "$HOME/gopath/pkg"
script:
- export GOOS=linux
- export GOARCH=arm
- export GOARM=7
- taskset -c 1 go test -v -exec "qemu-arm-static" ./...
- <<: *cross_tests
name: Linux arm64
addons:
apt:
packages:
- qemu-user-static
env:
- GOOS=linux
- GOARCH=arm64
script:
- taskset -c 1 go test -mod=vendor -exec "qemu-aarch64-static" ./...
- <<: *cross_tests
name: Linux armhf
addons:
apt:
packages:
- qemu-user-static
language: go
go: 1.10.x
cache:
directories:
- "$HOME/.cache/go-build"
- "$HOME/gopath/pkg"
script:
- export GOOS=linux
- export GOARCH=arm
- export GOARM=7
- taskset -c 1 go test -v -exec "qemu-arm-static" ./...
# -----------------------------------------------
# MacOS amd64
# -----------------------------------------------
- name: MacOS amd64 - Go 1.15.x
if: type = cron OR branch = master
os: osx
language: go
go: 1.15.x
cache:
directories:
- "$HOME/Library/Caches/go-build"
- "$HOME/gopath/pkg"
script:
- export GOOS=darwin
- export GOARCH=amd64
- go test -v ./...
- name: MacOS amd64 - Go 1.11.x
if: type = cron OR branch = master
os: osx
language: go
go: 1.11.x
cache:
directories:
- "$HOME/Library/Caches/go-build"
- "$HOME/gopath/pkg"
script:
- export GOOS=darwin
- export GOARCH=amd64
- go test -v ./...
- name: MacOS amd64 - Go 1.10.x
if: type = cron OR branch = master
os: osx
language: go
go: 1.10.x
cache:
directories:
- "$HOME/Library/Caches/go-build"
- "$HOME/gopath/pkg"
script:
- export GOOS=darwin
- export GOARCH=amd64
- go test -v ./...
# -----------------------------------------------
# MacOS i386
# -----------------------------------------------
- name: MacOS i386 - Go 1.15.x
if: type = cron OR branch = master
os: osx
language: go
go: 1.15.x
cache:
directories:
- "$HOME/Library/Caches/go-build"
- "$HOME/gopath/pkg"
script:
- taskset -c 1 go test -mod=vendor -exec "qemu-arm-static" ./...
- <<: *cross_tests
name: MacOS amd64
os: osx
cache:
directories:
- "$HOME/Library/Caches/go-build"
- "$HOME/gopath/pkg"
env:
- GOOS=darwin
- GOARCH=amd64
- GO111MODULE=on
- <<: *cross_tests
name: Windows amd64
os: windows
cache:
directories:
- "$HOME/Library/Caches/go-build"
- "$HOME/gopath/pkg"
script:
- export GOOS=darwin
- export GOARCH=386
- go test -v ./...
# -----------------------------------------------
# Windows amd64
# -----------------------------------------------
- name: Windows amd64 - Go 1.15.x
if: type = cron OR branch = master
os: windows
language: go
go: 1.15.x
script:
- GOOS=windows
- GOARCH=amd64
- go test -v ./...
- name: Windows amd64 - Go 1.11.x
if: type = cron OR branch = master
os: windows
language: go
go: 1.11.x
script:
- GOOS=windows
- GOARCH=amd64
- go test -v ./...
# -----------------------------------------------
# Windows i386
# -----------------------------------------------
- name: Windows i386 - Go 1.15.x
if: type = cron OR branch = master
os: windows
language: go
go: 1.15.x
script:
- GOOS=windows
- GOARCH=386
- go test -v ./...
- name: Windows i386 - Go 1.11.x
if: type = cron OR branch = master
os: windows
language: go
go: 1.11.x
script:
- GOOS=windows
- GOARCH=386
- go test -v ./...
- name: Windows i386 - Go 1.10.x
if: type = cron OR branch = master
os: windows
language: go
go: 1.10.x
script:
- GOOS=windows
- GOARCH=386
- go test -v ./...
# -----------------------------------------------
# Documentation
# -----------------------------------------------
- stage: Tests
name: Dead link check
if: type = pull_request OR type = push AND branch =~ /^master|[0-9]+-(dev|stable)$/ OR type = cron
language: node_js
node_js: 12
install:
- gem install typhoeus
- npm ci
before_script:
- npm run doc-prepare
- $(npm bin)/kuzdoc iterate-repos:install --repos_path .doc/framework/.repos/
- $(npm bin)/kuzdoc framework:link -d /sdk/go/3 -v 3 --base_root .doc/
script:
- cd .doc/framework/
- HYDRA_MAX_CONCURRENCY=20 ruby .ci/dead-links.rb -p src/sdk/go/3
- stage: Tests
name: Documentation test
language: go
go: 1.15.x
script:
- docker-compose -f .ci/doc/docker-compose.yml run doc-tests node index
- stage: Deployment Doc Dev
name: Deploy next-docs.kuzzle.io
if: type = push AND branch =~ .*-dev
language: node_js
node_js: 10
env:
- *doc-deploy-env
- S3_BUCKET=docs-next.kuzzle.io
- CLOUDFRONT_DISTRIBUTION_ID=E2ZCCEK9GRB49U
addons:
apt:
packages:
- python
- python-pip
install:
- pip install awscli --upgrade --user
- npm ci
script:
- npm run doc-prepare
- npm run doc-build
deploy:
provider: script
script:
- npm run doc-upload
skip_cleanup: true
after_deploy:
- npm run doc-cloudfront
- stage: Deployment Doc Prod
name: Deploy docs.kuzzle.io
if: branch =~ /^master|[0-9]+-stable$/
env:
- *doc-deploy-env
- S3_BUCKET=docs.kuzzle.io
- CLOUDFRONT_DISTRIBUTION_ID=E3D6RP0POLCJMM
# ------------------------
# Stages configuration
# ------------------------
stages:
- name: Unit Tests & Linters
if: type =~ /(cron|push|pull_request)/ AND branch =~ /^master|[0-9]+-(dev|stable)$/
- name: Cross-platform tests
if: type = cron
- name: Deployments
if: type = push AND branch =~ /^master|[0-9]+-(dev|stable)$/
# ---------------------------------------
# Notifications
# ---------------------------------------
notifications:
slack:
rooms:
- secure: "th1UK1PSRYsPG0TrrWFP0fRm/ClTQP/oxG52QxryaZHx3QnWiexrzgs+llv5I0wNcegFxPRgndcqMNFelodgxRWGIproiTQDfftCYXdNdJKTYtWYc6gzlPtqQkk36PH96Tq3tMPA/S0rhiGHQyUrh+R14vkVZJrD3W1fWzN/BqIJkWlXNIoDg98pD3l0nUoOY1s+3vWW7BZdzzMfvNEjF7Q+7DARd+F/pxsqiaUDrNV+EGG10y42/XxEpo4CfkNPqu2ArQRSW7BRoWdpNKVb+f7+nrhfVLr12LA9fcSYyXG0LWQ8vsZZaq8QHU4zImcydTElgryfliaWAFNTQ9KKQN+wjLPEhXyp6dRIET/ThqBxWCuL8pdJqNTqBfsYKp60VKt/jTa/BGwPBuWFwCSYP+/daTsoSK5qPF3A05K0xtSMAPJbylxahtZnqon6gFeuRJeeMtbGHfxNfdCRZXvBtv5txQn+szXDnZtNU2eYZ6uY47cc2VqQ/nx82u9a2vch6M9Hu6x05seYjVJZ50Nyh8kV4KFVpR82rXUb+ZDZ01bXV2MDm1Elo7NiVIByZ4PaI9tlkrlBcs6IRXULvE0+syxa/lwgHSO0NysyUjHPy46+c3VKtNVnu54oBkmEug1GEt+sq0TItqZG7d3COoolOvu+zQjROCzue/0p+1B7mu8="
on_success: never
on_failure: always