-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
437 lines (413 loc) · 13.5 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
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
notifications:
email: false
git:
quiet: true
depth: false
language: node_js
node_js: lts/*
python: 3.7
os: linux
arch: amd64
addons:
apt:
update: true
packages:
- jq
- curl
- sudo
- lsof
- httpie
install: true
before_install:
- export DISPLAY=:99.0
- |
if [ ! -f ${HOME}/.local/daggerok/bash-functions/master/main.bash ] ; then
mkdir -p ${HOME}/.local/daggerok/bash-functions/master ;
curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/main.bash > ${HOME}/.local/daggerok/bash-functions/master/main.bash ;
fi
source ${HOME}/.local/daggerok/bash-functions/master/main.bash ;
- stop_any 80 3000 5000 8080 5432
jobs:
include:
- stage: test
name: component-06-ts-vue-composition-api
env:
- SUB_PROJECT=component-06-ts-vue-composition-api
before_script:
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm i -E
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm start
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm run logs &
- wait_for 8080
script:
- http :8080
after_script:
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm stop
- stage: test
name: component-05-vue-composition-api
env:
- SUB_PROJECT=component-05-vue-composition-api
before_script:
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm i -E
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm start
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm run logs &
- wait_for 8080
script:
- http :8080
after_script:
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm stop
- stage: test
name: component-04-ts-vue-cli
env:
- SUB_PROJECT=component-04-ts-vue-cli
before_script:
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm i -E
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm start
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm run logs &
- wait_for 8080
script:
- http :8080
after_script:
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm stop
- stage: test
name: component-03
env:
- SUB_PROJECT=component-03
before_script:
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm i -E
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm start
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm run logs &
- wait_for 1234
script:
- http :1234
after_script:
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm stop
- stage: test
name: component-02-in-browser-in-html
env:
- SUB_PROJECT=component-02-in-browser-in-html
before_script:
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm i -E
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm start
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm run logs &
- wait_for 1234
script:
- http :1234
after_script:
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm stop
- stage: test
name: component-01-in-browser
env:
- SUB_PROJECT=component-01-in-browser
before_script:
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm i -E
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm start
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm run logs &
- wait_for 1234
script:
- http :1234
after_script:
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm stop
- stage: test
name: vuesax-example
env:
- SUB_PROJECT=vuesax-example
before_script:
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm i
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm start
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm run logs &
- wait_for 8080
script:
- http :8080
after_script:
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm stop
- stage: test
name: typescript-vue-app
before_script:
- cd $TRAVIS_BUILD_DIR/typescript-vue-app && npm i
- cd $TRAVIS_BUILD_DIR/typescript-vue-app && npm start
- cd $TRAVIS_BUILD_DIR/typescript-vue-app && npm run logs &
- wait_for 8080
script:
- http :8080
after_script:
- cd $TRAVIS_BUILD_DIR/typescript-vue-app && npm stop
- stage: test
name: ecma-script-parcel
before_script:
- cd $TRAVIS_BUILD_DIR/ecma-script-parcel && npm i
- cd $TRAVIS_BUILD_DIR/ecma-script-parcel && npm start &
- sleep 1s
- npm run logs &
- wait_for 1234
script:
- http :1234
after_script:
- cd $TRAVIS_BUILD_DIR/ecma-script-parcel && npm stop
- stage: test
name: ecma-script-5
before_script:
- cd $TRAVIS_BUILD_DIR/ecma-script-5
- npm i
- npm run start
- npm run logs &
- wait_for 3000 3001
script:
- http :3000
after_script:
- npm run stop
- stage: test
node_js: lts/*
name: vue-bootstrap-css
script:
- cd $TRAVIS_BUILD_DIR/vue-bootstrap-css
- npm i
- npm run predeploy
- stage: test
name: refs-work-natively-with-DOM-elements
script:
- cd $TRAVIS_BUILD_DIR/refs-work-natively-with-DOM-elements
- npm i
- npm run predeploy
- stage: test
name: eventbus
script:
- cd $TRAVIS_BUILD_DIR/eventbus
- npm i
- npm run predeploy
- stage: test
name: responsive-web-design
script:
- cd $TRAVIS_BUILD_DIR/responsive-web-design
- npm i
- npm run predeploy
- if [ -f npm-debug.log ]; then cat npm-debug.log; fi;
- npm run build -- --report
- stage: test
name: nuxt-server-side-rendering
script:
- cd $TRAVIS_BUILD_DIR/nuxt-server-side-rendering
- npm i
- npm run predeploy;
- if [ -f npm-debug.log ]; then cat npm-debug.log; fi;
- npm run build -- --report
# - stage: test
# node_js: lts/*
# name: vuex-map-getters-and-map-actions
# script:
# - cd $TRAVIS_BUILD_DIR/vuex-map-getters-and-map-actions
# - npm i
# - npm run predeploy
# - if [ -f npm-debug.log ]; then cat npm-debug.log; fi;
# - npm run build -- --report
#
# - stage: test
# node_js: lts/*
# name: vue-material
# script:
# - cd $TRAVIS_BUILD_DIR/vue-material
# - npm i
# - npm run predeploy
# - if [ -f npm-debug.log ]; then cat npm-debug.log; fi;
# - npm run build -- --report
#
# - stage: test
# node_js: lts/*
# name: materialize-css
# script:
# - cd $TRAVIS_BUILD_DIR/materialize-css
# - npm i
# - npm run predeploy
# - if [ -f npm-debug.log ]; then cat npm-debug.log; fi;
# - npm run build -- --report
#
# - stage: test
# node_js: lts/*
# name: vuex-contact-list
# script:
# - cd $TRAVIS_BUILD_DIR/vuex-contact-list
# - npm i
# - npm run predeploy
# - if [ -f npm-debug.log ]; then cat npm-debug.log; fi;
# - npm run build -- --report
# - stage: test
# node_js: lts/*
# name: vuex-counter-todo
# script:
# - cd $TRAVIS_BUILD_DIR/vuex-counter-todo
# - npm install
# - npm run predeploy
# - if [ -f npm-debug.log ]; then cat npm-debug.log; fi;
# - npm run build -- --report
# - stage: test
# node_js: lts/*
# name: hello-vuex
# script:
# - cd $TRAVIS_BUILD_DIR/hello-vuex
# - npm i
# - npm run predeploy
# - if [ -f npm-debug.log ]; then cat npm-debug.log; fi;
# - npm run build -- --report
# - stage: test
# node_js: lts/*
# name: todo-list
# script:
# - cd $TRAVIS_BUILD_DIR/todo-list
# - npm install
# - npm run predeploy
# - if [ -f npm-debug.log ]; then cat npm-debug.log; fi;
# - npm run build -- --report
# - stage: test
# node_js: lts/*
# name: hello-world
# script:
# - cd $TRAVIS_BUILD_DIR/hello-world
# - npm install
# - npm run predeploy
# - if [ -f npm-debug.log ]; then cat npm-debug.log; fi;
# - npm run build -- --report
# - stage: test
# node_js: lts/*
# name: template
# script:
# - cd $TRAVIS_BUILD_DIR/template
# - npm install
# - npm run predeploy
# - if [ -f npm-debug.log ]; then cat npm-debug.log; fi;
# - npm run build -- --report
## - stage: test
## node_js: lts/*
## name: vuetifyjs-setup
## script:
## - cd $TRAVIS_BUILD_DIR/vuetifyjs-setup
## - echo "TODO:\ FIXME:\ npm i fails:\ https://github.com/angular/angular/issues/13935"
## - npm i -f
## - npm run predeploy;
## - if [ -f npm-debug.log ]; then cat npm-debug.log; fi;
## - npm run build -- --report
# - stage: test
# node_js: lts/*
# name: vuetifyjs-setup
# script:
# - cd $TRAVIS_BUILD_DIR/vuetifyjs-setup
# - cp firebase.js.default firebase.js || true
# - echo "TODO:\ FIXME:\ npm i fails:\ https://github.com/angular/angular/issues/13935"
# - npm i -f
# - npm run predeploy
# - if [ -f npm-debug.log ]; then cat npm-debug.log; fi;
# - npm run build -- --report
#
## - stage: test
## node_js: lts/*
## name: firebase-using-vuefire
## script:
## - cd $TRAVIS_BUILD_DIR/firebase-using-vuefire
## - echo "TODO:\ FIXME:\ npm i fails:\ https://github.com/angular/angular/issues/13935"
## - npm i -f
## - npm run predeploy;
## - if [ -f npm-debug.log ]; then cat npm-debug.log; fi;
## - npm run build -- --report
# - stage: test
# node_js: lts/*
# name: firebase-using-vuefire
# script:
# - cd $TRAVIS_BUILD_DIR/firebase-using-vuefire
# - cp firebase.js.default firebase.js || true
# - echo "TODO:\ FIXME:\ npm i fails:\ https://github.com/angular/angular/issues/13935"
# - npm i -f
# - npm run predeploy
# - if [ -f npm-debug.log ]; then cat npm-debug.log; fi;
# - npm run build -- --report
#
## - stage: test
## node_js: lts/*
## name: some-vuetify-app
## script:
## - cd $TRAVIS_BUILD_DIR/some-vuetify-app
## - echo "TODO:\ FIXME:\ npm i fails:\ https://github.com/angular/angular/issues/13935"
## - npm i -f
## - npm run predeploy;
## - if [ -f npm-debug.log ]; then cat npm-debug.log; fi;
## - npm run build -- --report
# - stage: test
# node_js: lts/*
# name: some-vuetify-app
# script:
# - cd $TRAVIS_BUILD_DIR/some-vuetify-app
# - cp firebase.config.js.default firebase.config.js || true
# - echo "TODO:\ FIXME:\ npm i fails:\ https://github.com/angular/angular/issues/13935"
# - npm i -f
# - npm run predeploy
# - if [ -f npm-debug.log ]; then cat npm-debug.log; fi;
# - npm run build -- --report
#
## - stage: test
## node_js: lts/*
## name: vuetify
## script:
## - cd $TRAVIS_BUILD_DIR/vuetify
## - echo "TODO:\ FIXME:\ npm i fails:\ https://github.com/angular/angular/issues/13935"
## - npm i -f
## - npm run predeploy;
## - if [ -f npm-debug.log ]; then cat npm-debug.log; fi;
## - npm run build -- --report
# - stage: test
# node_js: lts/*
# name: vuetify
# script:
# - cd $TRAVIS_BUILD_DIR/vuetify
# - cp firebase.config.js.default firebase.config.js || true
# - echo "TODO:\ FIXME:\ npm i fails:\ https://github.com/angular/angular/issues/13935"
# - npm i -f
# - npm run predeploy
# - if [ -f npm-debug.log ]; then cat npm-debug.log; fi;
# - npm run build -- --report
- stage: deploy
env:
- SUB_PROJECT=eaglejs-slideshow
#- SUB_PROJECT=component-06-ts-vue-composition-api
- secure: oP/muOICK9B+4eYo8V8AQJqJ0iqy2n9s2n+5XUJPDJh04PZdG/jRp5mpoHATdSqrCEoREuvP1HAww8mNCiZRjN1pMbKE6v6LvtuRYURpm3Uctnbgf6m3pA95upcf48TsHLPr30seQge0lwR39dx+PQ0bbsfywR81MzPu+gT2ExbxMg70MOOf2tILIGAPKkk/Zishf7an17VzgFDJZLLq8fZaKFbFE5jgA5OMU7lgSUrQadhXTgRWT6kUmt7pPByovLinzBZVl/wBbyoxcxF3HSNaLcUSgWXDTDfQHeRDblS78ERtQ+ywBEN9dPv9cwTrxgZcr5laAQjIJ22HNGyLT2gxodlxRs3awp7zY2aNsdcrnbNNSTh2gfZ2r3yd/CDkuNU46W5QsfLpvEgJlacle4JM91afCoYj2OFFSx09UHfp9kPbRwuXerhgIWuYGUwQ15dXR0csxxqLJYslDK8XucKGrPIxo8gi4+/cKeKLotR7b5VXEjdrZtRfnbWU4htYMcb+1nGItKmYyK2eFb4ShOhS2lXRhEGwzAOhn8C5MGKdABpaPLcBHcAyUpGFl76B4nRU4kXKyKPKBJoBs36eZMBYgsiKwZ8UD9id0WIHLAQInbXzvh4SbmClJV4SFwcIroKkGv+iQdRvFA21d0v1teYTHAeHot4bKVGVEaODP/M=
name: GitHub pages deployment
script: skip
deploy:
on:
branch: master
provider: pages
skip-cleanup: true
keep-history: true
target_branch: gh-pages
github-token: "$GITHUB_TOKEN"
local-dir: $TRAVIS_BUILD_DIR/$SUB_PROJECT/dist
before_deploy:
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm i
- cd $TRAVIS_BUILD_DIR/$SUB_PROJECT && npm run gh
- cp -Rf $TRAVIS_BUILD_DIR/$SUB_PROJECT/dist/index.html $TRAVIS_BUILD_DIR/$SUB_PROJECT/dist/404.html
# - stage: deploy
# jdk: openjdk11
# env:
# - secure: oP/muOICK9B+4eYo8V8AQJqJ0iqy2n9s2n+5XUJPDJh04PZdG/jRp5mpoHATdSqrCEoREuvP1HAww8mNCiZRjN1pMbKE6v6LvtuRYURpm3Uctnbgf6m3pA95upcf48TsHLPr30seQge0lwR39dx+PQ0bbsfywR81MzPu+gT2ExbxMg70MOOf2tILIGAPKkk/Zishf7an17VzgFDJZLLq8fZaKFbFE5jgA5OMU7lgSUrQadhXTgRWT6kUmt7pPByovLinzBZVl/wBbyoxcxF3HSNaLcUSgWXDTDfQHeRDblS78ERtQ+ywBEN9dPv9cwTrxgZcr5laAQjIJ22HNGyLT2gxodlxRs3awp7zY2aNsdcrnbNNSTh2gfZ2r3yd/CDkuNU46W5QsfLpvEgJlacle4JM91afCoYj2OFFSx09UHfp9kPbRwuXerhgIWuYGUwQ15dXR0csxxqLJYslDK8XucKGrPIxo8gi4+/cKeKLotR7b5VXEjdrZtRfnbWU4htYMcb+1nGItKmYyK2eFb4ShOhS2lXRhEGwzAOhn8C5MGKdABpaPLcBHcAyUpGFl76B4nRU4kXKyKPKBJoBs36eZMBYgsiKwZ8UD9id0WIHLAQInbXzvh4SbmClJV4SFwcIroKkGv+iQdRvFA21d0v1teYTHAeHot4bKVGVEaODP/M=
# name: GitHub release and GitHub pages deployment (openjdk11)
# script: skip
# if: branch = "master" AND type NOT IN (pull_request)
# before_deploy:
# - if [ "$TRAVIS_PULL_REQUEST" != "false" ] || [ ".$TRAVIS_BRANCH" != ".master" ] ; then exit 0 ; fi
# - env
# - set -e
# - ./mvnw -Pdocs >/dev/null
# - ls .
# - ls target/generated-docs
# deploy:
# provider: pages
# skip-cleanup: true
# keep-history: true
# target_branch: gh-pages
# github-token: "$GITHUB_TOKEN"
# local-dir: target/generated-docs
# on:
# branch: master
cache:
npm: true
packages: true
directories:
- ~/.local/daggerok
- node_modules/
- ~/.n*