2018-11-07 12:24:53 +01:00
|
|
|
language: node_js
|
|
|
|
node_js: node
|
|
|
|
|
|
|
|
# will run `npm install` automatically here
|
|
|
|
|
|
|
|
script:
|
2018-11-10 00:31:47 +01:00
|
|
|
- npm test
|
2018-11-10 21:20:53 +01:00
|
|
|
- 'if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then npm run build; fi'
|
2018-11-07 12:24:53 +01:00
|
|
|
|
2018-11-16 11:12:28 +01:00
|
|
|
after_success:
|
2018-11-16 11:19:43 +01:00
|
|
|
- pip install --user awscli
|
|
|
|
- export PATH=$PATH:$HOME/.local/bin
|
2018-11-16 11:12:28 +01:00
|
|
|
- npm run deploy
|
|
|
|
|
2018-11-07 12:24:53 +01:00
|
|
|
notifications:
|
2018-11-10 00:31:47 +01:00
|
|
|
email: false
|
2018-11-07 12:24:53 +01:00
|
|
|
|
|
|
|
cache:
|
2018-11-10 00:31:47 +01:00
|
|
|
directories:
|
|
|
|
- node_modules
|
|
|
|
- public
|