This repository has been archived by the owner on Feb 6, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
94 lines (93 loc) · 2.45 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
dist: trusty
language: node_js
sudo: required
branches:
only:
- master
- develop
- release-1.0
- pre-release-v1.0.8
notifications:
email:
recipients:
- ci.report@ost.com
on_success: always
on_failure: always
node_js:
- "8"
env:
- GETH_VERSION=1.7.2
matrix:
include:
- if: branch =~ ^master
env: GETH_VERSION=1.7.2
node_js: "8"
- if: branch =~ ^master
env: GETH_VERSION=1.8.3
node_js: "8"
- if: branch =~ ^master
env: GETH_VERSION=1.8.8
node_js: "8"
- if: branch =~ ^develop
env: GETH_VERSION=1.7.2
node_js: "8"
- if: branch =~ ^develop
env: GETH_VERSION=1.8.3
node_js: "8"
- if: branch =~ ^develop
env: GETH_VERSION=1.8.8
node_js: "8"
- if: branch =~ ^master
env: GETH_VERSION=1.7.2
node_js: "9"
- if: branch =~ ^master
env: GETH_VERSION=1.8.3
node_js: "9"
- if: branch =~ ^master
env: GETH_VERSION=1.8.8
node_js: "9"
- if: branch =~ ^develop
env: GETH_VERSION=1.7.2
node_js: "9"
- if: branch =~ ^develop
env: GETH_VERSION=1.8.3
node_js: "9"
- if: branch =~ ^develop
env: GETH_VERSION=1.8.8
node_js: "9"
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_$GETH_VERSION.sh
- geth version
- sudo apt-get install solc
install:
- npm install
before_script:
- mkdir -p ~/.ethash
- geth makedag 0 ~/.ethash
- nohup sh tools/runTestRpc.sh </dev/null >/dev/null 2>&1 &
- bash contracts/compile.sh
- mkdir -p dynamodb
- wget https://s3.ap-south-1.amazonaws.com/dynamodb-local-mumbai/dynamodb_local_latest.zip -O ./dynamodb/dynamodb_local_latest.zip
- unzip ./dynamodb/dynamodb_local_latest.zip
- nohup java -Djava.library.path=./dynamodb/DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb &
- sleep 30
- . ./mocha_test/scripts/set_env_vars.sh
- node tools/dynamo_db_init.js
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}')
- kill $(ps aux | grep 'DynamoDBLocal.jar' | awk '{print $2}')
- rm -rf dynamodb