-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
46 lines (34 loc) · 1.42 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
language: python
matrix:
include:
- python: 3.7
dist: xenial
services:
- docker
install:
- pip install -r requirements.txt
- pip install -r dev-dependencies.txt
before_script:
# - docker build --build-arg GIT_TAG=3f24ea32ddeb27dd1b86671d1622ab2108a1f42e -t aergo/node ./docker_test_nodes/aergo
- docker-compose -f ./docker_test_nodes/aergo/docker-compose.yml up&
- aergo_docker_pid=$!
- docker run --rm --name ethereum-node -v $(pwd)/docker_test_nodes/ethereum:/root -v $(pwd)/docker_test_nodes/ethereum/local-eth-poa.json:/root/local-eth-poa.json ethereum/client-go --datadir ./root init ./root/local-eth-poa.json
- docker run --rm --name ethereum-node -v $(pwd)/docker_test_nodes/ethereum:/root -v $(pwd)/docker_test_nodes/ethereum/bp_pwd.txt:/root/bp_pwd.txt -p 8545:8545 ethereum/client-go --nodiscover --datadir ./root --unlock "0x035d4303f9508ddcab6d074cbc5ed82cd0b436ad" --password ./root/bp_pwd.txt --mine --rpcapi web3,eth,net --rpcaddr 0.0.0.0 --rpcport 8545 --rpc --allow-insecure-unlock --verbosity 5 --rpccorsdomain="*"&
- eth_docker_pid=$!
- sleep 10
- make deploy_test_bridge
- make validator&
- validator_pid=$!
- make proposer&
- proposer_pid=$!
- make unfreeze_service&
- unfreeze_service_pid=$!
script:
- make tests
after_script:
- kill $proposer_pid
- kill $validator_pid
- kill $unfreeze_service_pid
- kill $aergo_docker_pid
- kill $eth_docker_pid
- make clean