-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
46 lines (39 loc) · 1.08 KB
/
.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
35
36
37
38
39
40
41
42
43
44
dist: xenial
sudo: required
language: node_js
node_js:
- "9.4.0"
branches:
only:
- master
- disputeVoting
matrix:
include:
- os: linux
dist: xenial
before_install:
- sudo add-apt-repository ppa:ethereum/ethereum -y
- sudo apt-get update
- sudo apt-get install build-essential -y
- sudo apt-get install gcc g++ libssl-dev libudev-dev pkg-config
- curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
- sudo apt-get install -y nodejs
- rm -rf node_modules
install:
- cd ./src
- npm install
- npm install -g ganache-cli truffle
script:
- testrpc-sc --gasLimit 0xfffffffffff --gasPrice 0x01 --network-id 777 -p 8545 > /dev/null &
- sleep 5
- npm test
after_script:
- ps axuf | grep testrpc | awk '{print $2}' | xargs kill -9
- sleep 5
- testrpc-sc --gasLimit 0xfffffffffff --gasPrice 0x01 --network-id 777 -p 8545 > /dev/null &
- sleep 5
- npm run coverage && cat coverage/lcov.info | coveralls
notifications:
slack:
rooms:
- bigbom-internalteam:ugjgOcYhFhkkUCp3CVQIzEtK#devs-on-github