forked from 5afe/contract-proxy-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (48 loc) · 1.49 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
language: node_js
node_js:
- lts/dubnium
services:
- docker
jobs:
include:
- name: Ganache
before_script:
- CONTAINER_ID=$(docker run -d -p 8545:8545 trufflesuite/ganache-cli)
- yarn wait-port -t 10000 localhost:8545
script:
- yarn test
after_script:
- docker logs $CONTAINER_ID
- docker stop $CONTAINER_ID
- docker rm $CONTAINER_ID
- name: Ganache with --noVMErrorsOnRPCResponse
before_script:
- CONTAINER_ID=$(docker run -d -p 8545:8545 trufflesuite/ganache-cli --noVMErrorsOnRPCResponse)
- yarn wait-port -t 10000 localhost:8545
script:
- yarn test
after_script:
- docker logs $CONTAINER_ID
- docker stop $CONTAINER_ID
- docker rm $CONTAINER_ID
- name: Geth
before_script:
- yarn geth-dev-assistant --accounts 2 --gasLimit 6721975
script:
- yarn test
after_script:
- docker stop geth-client
- name: OpenEthereum
before_script:
- PASSFILE=$(mktemp)
- echo '' > $PASSFILE
- chmod 644 $PASSFILE
- 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)
- yarn wait-port -t 10000 localhost:8545
script:
- yarn test
after_script:
- docker logs $CONTAINER_ID
- docker stop $CONTAINER_ID
- docker rm $CONTAINER_ID
after_success: yarn coverage