-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
34 lines (33 loc) · 940 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
language: node_js
node_js:
- "8"
before_install:
- sudo add-apt-repository -y ppa:ethereum/ethereum
- sudo apt-get -y update
- sudo apt-get -y install solc
install:
- yarn install --non-interactive
- npm i -g bower truffle@beta wait-port
- bower install
- rm -r contract/build || echo ''
before_script:
- ./bin/solidity/compile.sh
- |
testrpc -a 210 > /dev/null 2>&1 &
TESTRPC_PID=$!
- wait-port -t 30000 localhost:8545 # wait for testrpc to be up and running
- echo "TestRPC started"
- cd contract && truffle migrate --reset --compile-all && cd .. # fix for weird truffle bug re: invalid number of args
script:
"yarn test-all"
after_script:
- kill -s SIGTERM $TESTRPC_PID
cache:
yarn: true
directories:
- tests/elm-stuff/build-artifacts
- node-modules
- output
- outputTest
- .pulp-cache
- bower_components