2017-08-18 20:17:06 +00:00
|
|
|
language: node_js
|
2019-05-19 04:47:39 +00:00
|
|
|
cache: yarn
|
2019-01-06 02:03:10 +00:00
|
|
|
before_install:
|
2019-01-26 23:21:19 +00:00
|
|
|
- openssl aes-256-cbc -K $encrypted_a35d52d190dd_key -iv $encrypted_a35d52d190dd_iv
|
2019-01-26 23:26:42 +00:00
|
|
|
-in secrets.tar.enc -out secrets.tar -d
|
|
|
|
- tar xvf secrets.tar
|
2018-09-01 13:44:29 +00:00
|
|
|
script:
|
2019-05-19 04:47:39 +00:00
|
|
|
- yarn lint
|
2019-07-10 15:02:31 +00:00
|
|
|
- yarn test
|
2019-05-19 04:47:39 +00:00
|
|
|
- NODE_ENV=$([ "$TRAVIS_BRANCH" == "master" ] && echo "production" || echo "staging") yarn build
|
2017-08-18 20:17:06 +00:00
|
|
|
deploy:
|
2019-01-26 23:21:19 +00:00
|
|
|
- provider: gae
|
|
|
|
skip_cleanup: true
|
2019-01-27 05:30:01 +00:00
|
|
|
keyfile: service-account-staging.json
|
2019-01-26 23:26:42 +00:00
|
|
|
project: unpkg-staging
|
2019-01-27 06:49:01 +00:00
|
|
|
config: app-staging.yaml
|
2019-01-26 23:21:19 +00:00
|
|
|
on:
|
2019-01-27 07:22:11 +00:00
|
|
|
branch: staging
|
2019-01-27 05:30:01 +00:00
|
|
|
- provider: gae
|
|
|
|
skip_cleanup: true
|
|
|
|
keyfile: service-account.json
|
|
|
|
project: unpkg-gcp
|
2019-01-27 06:49:01 +00:00
|
|
|
config: app.yaml
|
2018-07-14 07:00:29 +00:00
|
|
|
on:
|
2019-01-15 04:11:22 +00:00
|
|
|
branch: master
|