safe-react/.travis.yml

20 lines
437 B
YAML
Raw Normal View History

language: node_js
node_js:
- "8"
os:
- linux
before_script:
- yarn global add surge
- export NODE_ENV=testing
after_success:
- |
if [ ${TRAVIS_BRANCH} = "master" ]; then
export NODE_ENV=production;
else
export NODE_ENV=development;
fi
- yarn build-storybook
- yarn build
- cd build_webpack/ && cp index.html 200.html && cd ..
- chmod ugo+x ./config/deploy/deploy.sh
- ./config/deploy/deploy.sh