2018-03-12 08:30:03 +00:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
|
|
|
- "8"
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
before_script:
|
2018-04-30 12:09:38 +00:00
|
|
|
- yarn global add truffle@4.1.5
|
2018-03-15 10:14:20 +00:00
|
|
|
- yarn global add surge
|
2018-03-12 08:30:03 +00:00
|
|
|
- git clone https://github.com/gnosis/gnosis-safe-contracts.git
|
|
|
|
- cd gnosis-safe-contracts
|
2018-04-30 12:09:38 +00:00
|
|
|
- git fetch && git checkout feature/optimize_personal_edition
|
2018-03-12 08:30:03 +00:00
|
|
|
- truffle compile && cd ..
|
|
|
|
after_success:
|
2018-03-15 10:14:20 +00:00
|
|
|
- yarn build-storybook
|
|
|
|
- yarn build
|
2018-03-12 08:30:03 +00:00
|
|
|
- |
|
|
|
|
if [ ${TRAVIS_BRANCH} = "master" ]; then
|
|
|
|
export NODE_ENV=production;
|
|
|
|
else
|
|
|
|
export NODE_ENV=development;
|
|
|
|
fi
|
2018-03-15 10:14:20 +00:00
|
|
|
- cd build_webpack/ && cp index.html 200.html && cd ..
|
2018-03-12 08:30:03 +00:00
|
|
|
- chmod ugo+x ./config/deploy/deploy.sh
|
|
|
|
- ./config/deploy/deploy.sh
|