Browse Source

Only run docker in integration with cache

fixTypes
junderw 6 years ago
parent
commit
c77db1a14f
No known key found for this signature in database GPG Key ID: B256185D3A971908
  1. 8
      .travis.yml
  2. 2
      test/integration/_regtest.js

8
.travis.yml

@ -3,9 +3,11 @@ language: node_js
services:
- docker
before_install:
- docker pull junderw/bitcoinjs-regtest-server
- docker run -d -p 127.0.0.1:8080:8080 junderw/bitcoinjs-regtest-server
- docker ps -a
- if [ $TEST_SUITE = "integration" ]; then
docker pull junderw/bitcoinjs-regtest-server &&
docker run -d -p 127.0.0.1:8080:8080 junderw/bitcoinjs-regtest-server &&
docker ps -a;
fi
node_js:
- "8"
- "lts/*"

2
test/integration/_regtest.js

@ -71,7 +71,7 @@ async function faucet (address, value) {
}
)
await sleep(randInt(50, 150))
await sleep(randInt(10, 40))
const results = await unspents(address)

Loading…
Cancel
Save