26 lines
620 B
YAML
26 lines
620 B
YAML
language: node_js
|
|
cache: yarn
|
|
before_install:
|
|
- openssl aes-256-cbc -K $encrypted_a35d52d190dd_key -iv $encrypted_a35d52d190dd_iv
|
|
-in secrets.tar.enc -out secrets.tar -d
|
|
- tar xvf secrets.tar
|
|
script:
|
|
- yarn lint
|
|
- yarn test
|
|
- NODE_ENV=$([ "$TRAVIS_BRANCH" == "master" ] && echo "production" || echo "staging") yarn build
|
|
deploy:
|
|
- provider: gae
|
|
skip_cleanup: true
|
|
keyfile: service-account-staging.json
|
|
project: unpkg-staging
|
|
config: app-staging.yaml
|
|
on:
|
|
branch: staging
|
|
- provider: gae
|
|
skip_cleanup: true
|
|
keyfile: service-account.json
|
|
project: unpkg-gcp
|
|
config: app.yaml
|
|
on:
|
|
branch: master
|