@@ -8,10 +8,16 @@ services:
88
99before_install :
1010 - git clone --depth=1 --branch=cpk-test https://github.com/gnosis/safe-relay-service.git
11+ # - cd safe-relay-service
12+ # - docker-compose -f docker-compose.yml -f docker-compose.dev.yml build
13+ # - cd ..
14+
15+ before_script :
16+ - yarn wait-port -t 10000 localhost:8545
1117 - cd safe-relay-service
12- - docker-compose -f docker-compose.yml -f docker-compose.dev.yml build
13- - SAFE_RELAY_CONTAINER_ID=$(docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d)
18+ - docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d
1419 - cd ..
20+ - yarn wait-port -t 10000 localhost:8000
1521
1622after_script :
1723 - cd safe-relay-service
@@ -24,40 +30,23 @@ after_script:
2430jobs :
2531 include :
2632 - name : Ganache
27- before_script :
28- # - PROVIDER_CONTAINER_ID=$(docker run -d -p 8545:8545 trufflesuite/ganache-cli -h 0.0.0.0 -d --defaultBalanceEther 10000)
29- - yarn ganache-cli -h 0.0.0.0 -d --defaultBalanceEther 10000 &
30- - yarn wait-port -t 10000 localhost:8545
31- after_script :
32- - cd safe-relay-service
33- - docker-compose logs web
34- - docker-compose down
35- - cd ..
36- - killall ganache-cli
37-
33+ after_install :
34+ - PROVIDER_CONTAINER_ID=$(docker run -d -p 8545:8545 trufflesuite/ganache-cli -d --defaultBalanceEther 10000)
35+
3836 - name : Ganache with --noVMErrorsOnRPCResponse
39- before_script :
40- # - PROVIDER_CONTAINER_ID=$(docker run -d -p 8545:8545 trufflesuite/ganache-cli -h 0.0.0.0 -d --defaultBalanceEther 10000 --noVMErrorsOnRPCResponse)
41- - yarn ganache-cli -h 0.0.0.0 -d --defaultBalanceEther 10000 --noVMErrorsOnRPCResponse &
42- - yarn wait-port -t 10000 localhost:8545
43- after_script :
44- - cd safe-relay-service
45- - docker-compose logs web
46- - docker-compose down
47- - cd ..
48- - killall ganache-cli
37+ after_install :
38+ - PROVIDER_CONTAINER_ID=$(docker run -d -p 8545:8545 trufflesuite/ganache-cli -d --defaultBalanceEther 10000 --noVMErrorsOnRPCResponse)
4939
5040 - name : Geth
51- before_script :
41+ after_install :
5242 - yarn geth-dev-assistant --accounts 10 --gasLimit 6721975 --balance 10000
5343 - PROVIDER_CONTAINER_ID=geth-client
5444
5545 - name : OpenEthereum
56- before_script :
46+ after_install :
5747 - PASSFILE=$(mktemp)
5848 - echo '' > $PASSFILE
5949 - chmod 644 $PASSFILE
6050 - PROVIDER_CONTAINER_ID=$(docker run -d -p 8545:8545 -p 8546:8546 -v $PASSFILE:$PASSFILE openethereum/openethereum --config dev --jsonrpc-interface=all --ws-interface=all --unlock 0x00a329c0648769a73afac7f9381e08fb43dbea72 --password $PASSFILE)
61- - yarn wait-port -t 10000 localhost:8545
6251
6352after_success : yarn coverage
0 commit comments