mirror of
https://github.com/status-im/topic-democracy.git
synced 2025-02-24 16:18:46 +00:00
37 lines
860 B
YAML
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 |