forked from OpenSTFoundation/openst-payments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (40 loc) · 965 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
35
36
37
38
39
40
dist: trusty
language: node_js
sudo: required
branches:
only:
- master
- develop
notifications:
email:
recipients:
on_success: always
on_failure: always
node_js:
- "8"
services:
- mysql
before_install:
- mysql -e 'CREATE DATABASE payment_development;'
- sudo apt-get update
- sudo apt-get install nodejs
- sudo apt-get install npm
- sudo apt-get install software-properties-common
- sudo add-apt-repository -y ppa:ethereum/ethereum
- sudo apt-get update
- sudo bash mocha_test/scripts/install_geth_1_7_3.sh
- sudo apt-get install solc
- geth version
install:
- npm install
before_script:
- nohup sh tools/runTestRpc.sh </dev/null >/dev/null 2>&1 &
- bash contracts/compile.sh
script:
- truffle test
- cd mocha_test/scripts/
- bash travis_test.sh
after_script:
- kill $(ps aux | grep 'testrpc' | awk '{print $2}')
- kill $(ps aux | grep 'geth' | awk '{print $2}')