topic-democracy/.travis.yml
Ricardo Guilherme Schmidt 82caeaf1c3
add travis
2019-08-21 10:02:14 -03:00

37 lines
860 B
YAML

sudo: required
dist: xenial
language: node_js
node_js:
- "10"
addons:
snaps:
- ipfs
env:
- PATH=/snap/bin:$PATH
before_install:
- ipfs init
- sudo apt-get update -qq
- sudo apt-get install software-properties-common -y -qq
- sudo add-apt-repository -y ppa:ethereum/ethereum
- sudo apt-get update -qq
- sudo apt-get install geth -y -qq
- < /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-32} > .password
script:
- npm test
before_deploy:
- npm run travis
cache: npm
before_cache:
- rm -rf node_modules/remix-simulator/node_modules/websocket/.git/
- rm -rf node_modules/remix-tests/node_modules/websocket/.git/
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: dist
keep_history: true
on:
branch: develop
after_deploy:
- rm .password
- rm -rf .embark/travis/datadir/keystore