-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
473 lines (468 loc) · 22.8 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
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
language: node_js
os: linux
dist: bionic
env:
global:
- CPUS_COUNT=4
- TRAVIS_AUTHOR_NAME=Travis
- SENTRY_ORG=randytarampi
- SENTRY_PROJECT=me
- SENTRY_LOG_LEVEL=debug
- secure: ZTBYFZ10aI9BZPy5svRBilIqEbx88fLxUVgblqhlWStF8jhnWslOULzjXFbz2dpTboEYDxlFwfo9+K0hYUJmL7iDtpnKX9pbA5SXQxok2W9zoGGrNDedcXIQxyCWMKKmpcco5B6PFS+uScuYSQzUu9FEwkcEXoxr1hUom2THEXm3FxRHMP5iCr9HwNb0ZmHq622G5jEtCImWErHauLYyuay9A9geFysHuUE5qNITsQP5IjNH2vEqs3KAGZxLAUbV7OKwafEh2mPDqYV/96uOf4uGtQA5EV2yfoemkLN1OgffGGLoPqdL5kDzkcrPacbVvQSc8pL5T4irsNOngs3PsiEtz21qdkA0o9pwsbmC4HWRxq/4A86ECH1mWoLXp6aF6LmUpxclnQIj46986Dm+DSfg9wmUHP4WJsfrQOfJ4ZIgtAG0hS5nKSHY9qep9bkLNgP4K6ZCVosUG3QgA5nImyP++90H8eM6hzNCpXCBX71S1QmW6iQqPT1B34S2fJzPQYU3mFX05itP7V9ikKsFXy9YDjmzc8f1E09/WH1bJcW/4kcHUxyki6PZy4hWM7252H7iI1wcseOExzmS9awkZUKyGqVrVQ9D7/KZxmh9zHfRHXRZj1FSDtLBaPSlAS8Do0EDToFpUsFEdHUyvgf3QWg6jwweS9zXlXTmKxBPxz8=
- secure: oxfqOoaXj7BuY0mNwqJdvj/3HPShjhKpS5iCAhd02IvrJHXsYVzOf1JEj6fO94VntDNKpep/2fzl+pfIBgsyGCB8JsGVTyszitbJVSZio7kJFgNj9XZr6WajFU2jfSmqV7H7Z1pGcEESTbPdGdLAwL7PJnik8OEWKleP6WDC5IPDN7yVycn6h72vMoX8VDqZPnP0ZuaiW1VaGrHCcg5Fg9Id5TRzHsmz5yE0DYOPL5QO8NI3JAk5Sq+nqCvb0/Ac0pSTJgqfKXDryIws17y18VubKuLAQMhfHXC9k5C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secure: jiRIplDwEue0+etKQiAc2o932H2JmIPsJ/peBNJTyFd2uNfbcnuivlo0p//19Inzr9hYsg2inllIDeEevx5iZm3J8uMUFs8YsRZTPcfkTxy2cZrzzb1ZhG4/ItyBxq0EKMdnVaNV5JiyjzOtlKEoHFZzBCjgxNNy9BGIH1iAxymvO+UqfTHtVFspigghsVX286OStdNpTycVzSw86tLt68uUCU2mzdG2pYswbSUwk4McunMLnqFuO2aRswxvWnUu3DHnKZFbeZHpHeDjRA3KQHJczCdHh4nVi4ElZ4JtRSqy3Q25FKxR4A53UcdidZd/fznHIxTidPFjWEH9wZESCT8eA3HTbqZeXlFTbE+X8k3Hay0wIbRsM15Z8ZY8p7Wf0j8t+yGSMVl5hPDGTXCOEyp+uRNIUY3pbeS2agtnIAx6IdphWupmPho4TQT/OzyweqGzPGmuXm95IBEm3eqz4JBOTZfVcxzcBMLcJDyASzwO1isloHrmhUmHej8QgvmW9zz3Z+lRp1RgKxaUkuwjjWkm6egYJ19x1519zEPpWQqrF3s/ivj5grlrdAa7r+bwsJQ3ZcgnOqAfcWq1pUNVyRroVX++Q2eIh1aXb4QRf/JHHPReuMKz4/ObhQygdZkFvWblk0eGJjIBGMqJrw2U8M4j2Txdz3KEi/+5eAWFQJs=
cache: false
before_install:
- export TRAVIS_REPO_OWNER=${TRAVIS_REPO_SLUG%/*}
- export TRAVIS_REPO_NAME=${TRAVIS_REPO_SLUG#*/}
- export PRINTABLE_PUPPETEER_NO_SANDBOX=${CI:=true}
- if [[ $TRAVIS_PULL_REQUEST != "false" ]]; then export PULL_REQUEST=${PULL_REQUEST:=$TRAVIS_PULL_REQUEST};
export COMMIT_SHA=${COMMIT_SHA:=$TRAVIS_PULL_REQUEST_SHA}; export BRANCH=${BRANCH:=$TRAVIS_PULL_REQUEST_BRANCH};
export REPO_SLUG=${REPO_SLUG:=$TRAVIS_PULL_REQUEST_SLUG}; fi;
- export COMMIT_SHA=${COMMIT_SHA:=$TRAVIS_COMMIT}
- export CPU_ARCH=${CPU_ARCH:=$TRAVIS_CPU_ARCH}
- export OS_NAME=${OS_NAME:=$TRAVIS_OS_NAME}
- export NODE_VERSION=${NODE_VERSION:=$TRAVIS_NODE_VERSION}
- export TRIGGER=${TRIGGER:=$TRAVIS_EVENT_TYPE}
- export REPO_SLUG=${REPO_SLUG:=$TRAVIS_REPO_SLUG}
- export BRANCH=${BRANCH:=$TRAVIS_BRANCH}
- export COMMIT_SHA=${COMMIT_SHA:=$TRAVIS_COMMIT}
- export COMMIT_MESSAGE=${COMMIT_MESSAGE:=$TRAVIS_COMMIT_MESSAGE}
- export BUILD_NUMBER=${BUILD_NUMBER:=$TRAVIS_BUILD_NUMBER}
- export BUILD_WEB_URL=${BUILD_WEB_URL:=$TRAVIS_BUILD_WEB_URL}
- export JOB_NUMBER=${JOB_NUMBER:=$TRAVIS_JOB_NUMBER}
- export JOB_WEB_URL=${JOB_WEB_URL:=$TRAVIS_JOB_WEB_URL}
- yarn config set script-shell $(which bash)
install:
- yarn install --ignore-engines --frozen-lockfile
stages:
- name: Install (dev)
if: tag IS blank AND NOT commit_message ~= /(?:^release\(travis\):)/
- name: Test
if: tag IS blank AND NOT commit_message ~= /(?:^release\(travis\):)/
- name: Deploy (dev)
if: tag IS blank AND type = push AND branch = master AND NOT commit_message ~= /(?:^release\(travis\):)/
- name: Release
if: commit_message ~= /(?:^release\(force\):)/ OR (tag IS blank AND type = push
AND branch = master AND NOT commit_message ~= /(?:^release\(travis\):)/)
- name: Install (prd)
if: tag IS present
- name: Deploy (prd)
if: tag IS present
matrix:
fast_finish: true
allow_failures:
- node_js: node
- node_js: lts/*
include:
- stage: Install (dev)
node_js: 12
cache: &installCache
yarn: true
npm: false
directories:
- ".yarn/cache"
- node_modules
- packages/browser-logger/node_modules
- packages/css/node_modules
- packages/job-application/node_modules
- packages/js/node_modules
- packages/jsonresume-theme/node_modules
- packages/jsx/node_modules
- packages/lambda-logger/node_modules
- packages/letter/node_modules
- packages/printables/node_modules
- packages/redux-metrics/node_modules
- packages/resume/node_modules
- packages/serverless/node_modules
- packages/service/node_modules
- packages/views/node_modules
- packages/www/node_modules
workspaces:
create:
name: linux-node__12
paths: &workspacePaths
- ".yarn/cache"
- node_modules
- packages/browser-logger/node_modules
- packages/css/node_modules
- packages/job-application/node_modules
- packages/js/node_modules
- packages/jsonresume-theme/node_modules
- packages/jsx/node_modules
- packages/lambda-logger/node_modules
- packages/letter/node_modules
- packages/printables/node_modules
- packages/redux-metrics/node_modules
- packages/resume/node_modules
- packages/serverless/node_modules
- packages/service/node_modules
- packages/views/node_modules
- packages/www/node_modules
- packages/browser-logger/es5
- packages/browser-logger/esm
- packages/css/dist
- packages/job-application/dist
- packages/job-application/es5
- packages/job-application/esm
- packages/js/es5
- packages/js/esm
- packages/jsonresume-theme/dist
- packages/jsonresume-theme/docs
- packages/jsonresume-theme/es5
- packages/jsonresume-theme/esm
- packages/jsx/es5
- packages/jsx/esm
- packages/lambda-logger/es5
- packages/lambda-logger/esm
- packages/letter/dist
- packages/letter/docs
- packages/letter/es5
- packages/letter/esm
- packages/printables/es5
- packages/printables/esm
- packages/redux-metrics/es5
- packages/redux-metrics/esm
- packages/resume/dist
- packages/resume/docs
- packages/resume/es5
- packages/resume/esm
- packages/serverless/es5
- packages/serverless/esm
- packages/views/dist
- packages/views/es5
- packages/views/esm
- packages/www/dist
- packages/www/docs
env:
- NODE_ENV=dev
install:
- git checkout $TRAVIS_BRANCH
- npx lerna version --no-git-tag-version --no-push --yes --conventional-commits --conventional-prerelease --preid=$TRAVIS_COMMIT --allow-branch $TRAVIS_BRANCH
- yarn install --ignore-engines --frozen-lockfile
before_script: skip
script: skip
after_script: skip
- stage: Install (dev)
node_js: 10
cache: *installCache
workspaces:
create:
name: linux-node__10
paths: *workspacePaths
env:
- NODE_ENV=dev
before_script: skip
script: skip
after_script: skip
- stage: Install (dev)
node_js: 14
cache: *installCache
workspaces:
create:
name: linux-node__14
paths: *workspacePaths
env:
- NODE_ENV=dev
before_script: skip
script: skip
after_script: skip
- stage: Install (dev)
node_js: node
cache: *installCache
workspaces:
create:
name: linux-node
paths: *workspacePaths
env:
- NODE_ENV=dev
before_script: skip
script: skip
after_script: skip
- stage: Install (dev)
node_js: lts/*
cache: *installCache
workspaces:
create:
name: linux-node__lts
paths: *workspacePaths
env:
- NODE_ENV=dev
before_script: skip
script: skip
after_script: skip
- stage: Test
node_js: 12
workspaces:
use: linux-node__12
env: &1
- NODE_ENV=test
install: skip
before_script: &2
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
> ./cc-test-reporter
- chmod +x ./cc-test-reporter
- "./cc-test-reporter before-build"
script: &3
- yarn run pretest
- yarn run cover:actual
after_script: &4
- yarn run pretest:collect
- if [ "$PULL_REQUEST" ]; then yarn run check-run-reporter:pretest; fi;
- yarn run cover:collect
- if [ "$PULL_REQUEST" ]; then yarn run check-run-reporter:test; fi;
- "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"
- CODECLIMATE_API_HOST=https://codebeat.co/webhooks/code_coverage CODECLIMATE_REPO_TOKEN=98216c3b-5de5-4a1f-b991-beb9bf2162a
yarn codeclimate-test-reporter < coverage/lcov.info
- yarn run coveralls
- python < $(curl https://report.ci/upload.py)
- bash <(curl -s https://codecov.io/bash)
- bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r coverage/lcov.info
- yarn run kill --scope @randy.tarampi/service
- stage: Test
node_js: 10
workspaces:
use: linux-node__10
env: *1
install: skip
before_script: *2
script: *3
after_script: *4
- stage: Test
node_js: 14
workspaces:
use: linux-node__14
env: *1
install: skip
before_script: *2
script: *3
after_script: *4
- stage: Test
node_js: node
workspaces:
use: linux-node
env: *1
install: skip
before_script: *2
script: *3
after_script: *4
- stage: Test
node_js: lts/*
workspaces:
use: linux-node__lts
env: *1
install: skip
before_script: *2
script: *3
after_script: *4
- stage: Release
name: GitHub
node_js: 12
workspaces:
use: linux-node__12
env:
- NODE_ENV=prd
- secure: OdYWXWY8Ienb9lqPDNzGm1fuq2Yew7ubT44iCSuUSi4BvYIffvSEzrMsi1/ao+09joWPZWRzqqrSiUNjr3oSPQOXKDlYNczLaKty7oTjOKVEC/oH3kRdE1fj+eWXVisKHOLyBT5h52eCIwPosq2zAxLB1ANt+bvmzvCQBatZgox0stJ8KNTXsPWCqRGl5EbBM1xBCFLoo3nZ9+kbzhcqsyzUAvPXwea+5ySndYYqebqoYH1mzG84l2hXPwZm1/kvr7ujhUxAsre4RlhxiuWGmTVztOpXjhN1yFbp52bU2jlrscnh77HDTJZgvqhfVFA6HOT5Vi7Uy/VRU6TJaTDVrCafmbiU3AeZNq44WkDBtoiNEsLQVJr2xzr0pIw/MueVZt87/DcspYqjAMNvyhsL4esHs5HiS+/0zwc9IVbLq92WIX3vIIKMCQe7/q8gq4WKrusHgNQABy3j7JKttp4Oq31HkiFbg59tTf3LIbPzDCyws7IXyWDp9EUuDqPAfmJHg+Rwd1SGu5/okqmCYqCeGNMosyBNORr1V5Yogemi+N8cqaGnLfPkaOMtuRdRfhLaD+3biEVV8SkeMTEqz5B7zjDzvz3ONJ91OyOdwmpUNlv9k0fKq0iwzTsSV/gZ7XvETwXAAorGai0kDPzHB2FAEPIx5XyMcloDj5e1EGZ+aew=
install:
- git checkout $TRAVIS_BRANCH
- HAS_PUBLISHABLE_CHANGES=`yarn lerna changed -alp || false`
- if [ -n "$(echo $TRAVIS_COMMIT_MESSAGE | grep '^release(force):')" ]; then IS_FORCED_RELEASE=1;
else IS_FORCED_RELEASE=0; fi;
before_script: skip
script: skip
after_script: skip
before_deploy:
- git checkout $TRAVIS_BRANCH
- git config --local user.name "$TRAVIS_AUTHOR_NAME"
- export COMMIT_AUTHOR=`git --no-pager show -s --format='%ae' \`git rev-parse\``
- git config --local user.email "$TRAVIS_AUTHOR_EMAIL"
- git remote add ci-push https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
- yarn lerna version --no-git-tag-version --no-push --yes --conventional-commits --conventional-graduate;
- REPO_VERSION=$(node -p 'require("./lerna.json").version')
- git add packages/*/CHANGELOG.md
- git rm --ignore-unmatch --force **/*.pdf_original
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
- export TRAVIS_TAG=${TRAVIS_TAG:=v$REPO_VERSION}
- export TRAVIS_TAG_COMMIT=${TRAVIS_TAG_COMMIT:=$(git rev-parse HEAD)}
- 'if [[ -n $(git status -s) ]]; then git commit -am "release(travis): Release
v$REPO_VERSION"; git tag -a $TRAVIS_TAG -m "release(travis): Release v$REPO_VERSION.";
export TRAVIS_TAG_COMMIT=$(git rev-parse HEAD); git push ci-push master --follow-tags;
yarn lerna publish from-git --conventional-commits --create-release github --yes
--concurrency ${CPUS_COUNT}; yarn lerna run letter --scope @randy.tarampi/letter &&
yarn lerna run resume --scope @randy.tarampi/resume && yarn lerna run resume --scope
jsonresume-theme-randytarampi && yarn lerna run docs --scope @randy.tarampi/letter --scope
@randy.tarampi/resume --scope jsonresume-theme-randytarampi --scope @randy.tarampi/www; fi;'
- mkdir -p $TRAVIS_BUILD_DIR/../dpl_cd_upload
- tar -zcf $TRAVIS_BUILD_DIR/../dpl_cd_upload/me.tar.gz -C $TRAVIS_BUILD_DIR/
$TRAVIS_BUILD_DIR
deploy:
- provider: releases
api_key:
secure: bscGrBY4fO8ca32Tr35yEZuMgt7QDMydEDghvsOEhvkoTQ2piicg5QeAJDbhd1lxszLbQ/8sN0Dn08VM1GN4iWMLyZPVcf0vFAxm+8kkNr5zepjwxvOkzMv4FfnILSQEWgMIS6xTopuLxKAe7OsPGOjV/H7S+3/UOil2Av1dKx4jd93L1Q+ciERDHtDgnA6zIYqtuFe6aoiMe8TDL5/q2Xvbp6M3UJpOor64u5uuc1ruoxPewJV9NYtwP0M6JR3wMMW/chOPNRVfp2WlXPYf/U8HOThWeAhBHZNgj2pXhvvNDq8w6Z6jcHt2mb+2ot8XZAUMqllONwSKQUBagkY2frXCTB1B4BVyVkQL2N3KlpQbPfjh3yk3qU9n0o5TECSWhqxAtCe9Zk6hy5/VSQib7zmVTh74JfoEMdudHtgciEeE5BMz8aEwo0+nInQcwVI1qQkTJ/WqMHAz7UDckMsgmnPoD5xYF13tRCJBk5ctmb28uKJYd2/1CQwOHI/KzpMhWO/KgcrjFSy4J3zDFtX8v9j7ZCMtjwpnf+juMADEoYbdchfsYVPFxhdYlGIdTPfKMuvrSIxpld07RMLM6/8gRUKCNpItf7GWKGNwMOd1j5cS266nCLBjA9HoG0fE0oCEcyP3lHgWRtiD3It5hj+Fv/d2eYgRLBZyE9VVoUFvaIE=
file_glob: true
file:
- me.tar.gz
- "$TRAVIS_BUILD_DIR/packages/jsonresume-theme/docs/resume.*.pdf"
- "$TRAVIS_BUILD_DIR/packages/letter/docs/letter.*.pdf"
skip_cleanup: true
on:
condition: "-n $HAS_PUBLISHABLE_CHANGES || -n $IS_FORCED_RELEASE"
target_commitish: "$TRAVIS_TAG_COMMIT"
- stage: Deploy (dev)
name: www
node_js: 12
workspaces:
use: linux-node__12
env:
- BABEL_ENV=production
- NODE_ENV=dev
- DEPLOY=true
- WWW_PACKAGE_DIR=$TRAVIS_BUILD_DIR/packages/www
- secure: BqXseN/Q6y0i7wX9eqO+3qmfNybZcOJXB1FHDa4vEfM58HvXGAzDsxc5cLn+Cv4DlZ5jBQDgPQxKz5uVPuTZI1m+Ev39S2aR9be3EGISfyShYB1SM8Mzq4vic6/gdarR7rtRMVtdU/CeZPQCXVde9NxR4oNjvDP7GwHGDsm4fjgOW7c2am70JFl26z5O2lqiw/NPQnEo45vGuIlhZaGxayn9Dy0EVHdNMYQ+2JsBXvEC0CTgAbNS8ODL223YSe3UOiN/cKOEtBOe5Sd25pu2JXHrMDWSiJnTIJRwg7VAUqNvEb+9QEGzEzKJKxSfNo7z1QnQ3JMLd8T7HJQ+TaXUr5uiOqNLHybDLumcSSghNHZQVY6+m2wFs0AwZvWHi/nPs1ld7WvlDzPVwfs8FQA3g5w07aMaVrd1O+xo0/5ZXVUkocxksLtSuXTRutwHQMbEMrbmp0uzXRH3FZvbzrmvhtbP3Kz1dO+aFC7IKaWezj5PRkdNtWPkqS+gT0IXrJnJ8gAEsRXToxEruJGwBdKkhQqQwoz7hjf8VChUOMfnOfW64/Os6yK9Grr/UyAdkf9jUL45gb8I1C16ddz6getXtrcQV/YFGkBckNnMO6SAsPci84ESlX69tlXnpLwAjf5MOpwmY/MJfX7Cd1AibzcX1rXHufPVuOdV4iSsyS+ioWY=
install:
- yarn lerna run docs --scope @randy.tarampi/www
before_script: skip
script: skip
after_script: skip
before_deploy:
- echo "www.dev.randytarampi.ca" > $WWW_PACKAGE_DIR/docs/CNAME;
- if [ -d "$WWW_PACKAGE_DIR/docs" ]; then git add --verbose --force --all $WWW_PACKAGE_DIR/docs;
fi;
- 'if [[ -n $(git status -s) ]]; then git commit -m "release(travis): Prepare
to deploy \`www\` to ${TRAVIS_REPO_OWNER}.github.io.git"; fi;'
deploy:
- provider: pages
local-dir: packages/www/docs
repo: "${TRAVIS_REPO_OWNER}/${TRAVIS_REPO_OWNER}.github.io"
target-branch: master
verbose: true
email: "$TRAVIS_AUTHOR_EMAIL"
name: "$TRAVIS_AUTHOR_NAME"
github-token: "$GH_TOKEN"
skip_cleanup: true
on:
branch: master
- stage: Deploy (dev)
name: posts
node_js: 12
workspaces:
use: linux-node__12
env:
- BABEL_ENV=production
- NODE_ENV=dev
- DEPLOY=true
- secure: BqXseN/Q6y0i7wX9eqO+3qmfNybZcOJXB1FHDa4vEfM58HvXGAzDsxc5cLn+Cv4DlZ5jBQDgPQxKz5uVPuTZI1m+Ev39S2aR9be3EGISfyShYB1SM8Mzq4vic6/gdarR7rtRMVtdU/CeZPQCXVde9NxR4oNjvDP7GwHGDsm4fjgOW7c2am70JFl26z5O2lqiw/NPQnEo45vGuIlhZaGxayn9Dy0EVHdNMYQ+2JsBXvEC0CTgAbNS8ODL223YSe3UOiN/cKOEtBOe5Sd25pu2JXHrMDWSiJnTIJRwg7VAUqNvEb+9QEGzEzKJKxSfNo7z1QnQ3JM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nXzc=
install: skip
before_script: skip
script: skip
after_script: skip
deploy:
- provider: script
script: yarn lerna run deploy --scope @randy.tarampi/service
skip_cleanup: true
on:
master: true
node: 12
os: linux
condition: "$TRAVIS_OS_NAME = linux"
- stage: Install (prd)
node_js: 12
cache: *installCache
workspaces:
create:
name: linux-node__12
paths: *workspacePaths
env:
- NODE_ENV=prd
- DEPLOY=true
before_script: skip
script: skip
after_script: skip
- stage: Deploy (prd)
name: www
node_js: 12
workspaces:
use: linux-node__12
env:
- NODE_ENV=prd
- DEPLOY=true
- secure: BqXseN/Q6y0i7wX9eqO+3qmfNybZcOJXB1FHDa4vEfM58HvXGAzDsxc5cLn+Cv4DlZ5jBQDgPQxKz5uVPuTZI1m+Ev39S2aR9be3EGISfyShYB1SM8Mzq4vic6/gdarR7rtRMVtdU/CeZPQCXVde9NxR4oNjvDP7GwHGDsm4fjgOW7c2am70JFl26z5O2lqiw/NPQnEo45vGuIlhZaGxayn9Dy0EVHdNMYQ+2JsBXvEC0CTgAbNS8ODL223YSe3UOiN/cKOEtBOe5Sd25pu2JXHrMDWSiJnTIJRwg7VAUqNvEb+9QEGzEzKJKxSfNo7z1QnQ3JMLd8T7HJQ+TaXUr5uiOqNLHybDLumcSSghNHZQVY6+m2wFs0AwZvWHi/nPs1ld7WvlDzPVwfs8FQA3g5w07aMaVrd1O+xo0/5ZXVUkocxksLtSuXTRutwHQMbEMrbmp0uzXRH3FZvbzrmvhtbP3Kz1dO+aFC7IKaWezj5PRkdNtWPkqS+gT0IXrJnJ8gAEsRXToxEruJGwBdKkhQqQwoz7hjf8VChUOMfnOfW64/Os6yK9Grr/UyAdkf9jUL45gb8I1C16ddz6getXtrcQV/YFGkBckNnMO6SAsPci84ESlX69tlXnpLwAjf5MOpwmY/MJfX7Cd1AibzcX1rXHufPVuOdV4iSsyS+ioWY=
install: yarn lerna run docs --scope @randy.tarampi/www;
before_script: skip
script: skip
after_script: skip
deploy:
- provider: pages
local-dir: packages/www/docs
repo: "$TRAVIS_REPO_SLUG"
target-branch: gh-pages
verbose: true
email: "$TRAVIS_AUTHOR_EMAIL"
name: "$TRAVIS_AUTHOR_NAME"
github-token: "$GH_TOKEN"
skip_cleanup: true
on:
tags: true
- stage: Deploy (prd)
name: resume
node_js: 12
workspaces:
use: linux-node__12
env:
- NODE_ENV=prd
- DEPLOY=true
install:
- yarn lerna run resume --scope jsonresume-theme-randytarampi;
- yarn lerna run docs --scope jsonresume-theme-randytarampi;
before_script: skip
script: skip
after_script: skip
deploy:
- provider: pages
local-dir: packages/jsonresume-theme/docs
repo: "${TRAVIS_REPO_OWNER}/me.resume"
target-branch: master
verbose: true
email: "$TRAVIS_AUTHOR_EMAIL"
name: "$TRAVIS_AUTHOR_NAME"
github-token: "$GH_TOKEN"
skip_cleanup: true
on:
tags: true
- stage: Deploy (prd)
name: posts
node_js: 12
workspaces:
use: linux-node__12
env:
- NODE_ENV=prd
- DEPLOY=true
- secure: BqXseN/Q6y0i7wX9eqO+3qmfNybZcOJXB1FHDa4vEfM58HvXGAzDsxc5cLn+Cv4DlZ5jBQDgPQxKz5uVPuTZI1m+Ev39S2aR9be3EGISfyShYB1SM8Mzq4vic6/gdarR7rtRMVtdU/CeZPQCXVde9NxR4oNjvDP7GwHGDsm4fjgOW7c2am70JFl26z5O2lqiw/NPQnEo45vGuIlhZaGxayn9Dy0EVHdNMYQ+2JsBXvEC0CTgAbNS8ODL223YSe3UOiN/cKOEtBOe5Sd25pu2JXHrMDWSiJnTIJRwg7VAUqNvEb+9QEGzEzKJKxSfNo7z1QnQ3JMLd8T7HJQ+TaXUr5uiOqNLHybDLumcSSghNHZQVY6+m2wFs0AwZvWHi/nPs1ld7WvlDzPVwfs8FQA3g5w07aMaVrd1O+xo0/5ZXVUkocxksLtSuXTRutwHQMbEMrbmp0uzXRH3FZvbzrmvhtbP3Kz1dO+aFC7IKaWezj5PRkdNtWPkqS+gT0IXrJnJ8gAEsRXToxEruJGwBdKkhQqQwoz7hjf8VChUOMfnOfW64/Os6yK9Grr/UyAdkf9jUL45gb8I1C16ddz6getXtrcQV/YFGkBckNnMO6SAsPci84ESlX69tlXnpLwAjf5MOpwmY/MJfX7Cd1AibzcX1rXHufPVuOdV4iSsyS+ioWY=
- AWS_ACCESS_KEY_ID=AKIAIEKKCTFCDTGKKHMA
- secure: HG5SiuIvZNcqaAGjaPwyQFVxW5uUfGbrN3fwqDEyh3oLW1pcnofNCNGLotWoFTexSXkPGcJeswEPfo5koRej84h1CqmNOPJNmwomjR/lLVf1/CSRY5eo4rf8no9wwEOhzsSX+r4yCyOKoBQ8iaxkcwo/fvPIEwAo1NPLcDYusm7bvAsCrO5NDpZ0KkhYqrD823UqSKLtpVAj8ZVZih3ySI+QL/cPN1LlaOwbREbSHmKvDj7p63k0F/znQ9y+jip/dRgAYreTVLOHKKQmdTLDbl0Lf6yn1m8NvC94Cl2Klt4791i/AUqrC1JV7eEE9f9n7jI3l5M469C5DWVFC9Nc9S1d2tcUAbQS441hZMsp0Hh7iLb601GSQZwI/KbNtM1hYJa/ONSrfJcWjU6MQudUHuOIZo1AoiDjlenznouRiIssJ+f3KKxK8t9UEzlTVsHSoBMvQ9lVabae7iTltM6zVD/BlirUhWFpSInSQsHOIMV1fkDep/0lfXX8rufb5pHm41A8yz3bkwLSPQILEwY9O21ngkffSKlu1sUFqvSdE6SwH5nvXEDaF44QvO9OAn3T6BRz+mHvtGCe9xwq9ixsdpEHzGcC6xHD+coJwFshByWkaMP6+RRobGwpHaxn59DGoTPWY5bhaL2EOiAQBK8d4iQg/rPM++Mcd7jDHZKnXzc=
install: skip
before_script: skip
script: skip
after_script: skip
deploy:
- provider: script
script: yarn lerna run deploy --scope @randy.tarampi/service
skip_cleanup: true
on:
tags: true
notifications:
slack:
secure: MTSym0Ymg+oYMx+Fmf3a2g2LyVtPJ8hg4sjtbfdyPBZAhO3rU9RxRFrBimNp9knZppwFpofosW4C6bKEBAN6p2AfeZOqQmYuRetZdS27pO6mdBpH56EJ7o2VJS/5ec9Lqw77802FO8XiRtWwySvxyE9nEHmm5dxOYf2JYj9OTiyNqmyRJFTRQiURZLOxn1CJLUI3OB8A0dtRU1hI3xx0kP+q7fHXp8xdNssB8ETBXwzG3HFE12VQRseCe01U0PdmGiRwQRQGXcGg00KTPFU1Gin7LY9mhSHRV9TsmvTtx6gXMYHo2UiLts0Omeb80k1nDZwBcAYsY4bIpgI1e01jJpDIHbg4lWskbnnSZWHG9QPIsOcG236Oqz/5bj+J70gRMw1zu+UYnH8XcfgcV+tBOu86oj8rtWeFGr58mh1HOiNedvqef2xNi+Yc3Ykj3ZfjVITlI/Lfpi6ZPNhjpL4Bbanmyd3KbbaYpdWkY5+SYJOhidq6VpHpBIqsACUwsLl6X8Yajteh5TLMK9ixkaTL97BT8niHTtEwkraMs5a0yfi9EDQNOjFERJq48Jrhpuq+MosgmyMmgX+31khzIgMr9+AUy3wL3dmIO198+Wm/k2rElYJmYuORI+txzIwYDGsaUbusyhy578Q5ilsiLbF1jZnPrvlQKVLCTIAMlXdmTpw=
addons:
apt:
packages:
- language-pack-ja
- japan*
- fonts-wqy-microhei
- ttf-wqy-microhei
hosts:
- dynamodb-local