Only run docker in integration with cache

This commit is contained in:
junderw 2019-04-09 15:19:05 +09:00
parent dc1ef5958b
commit c77db1a14f
No known key found for this signature in database
GPG key ID: B256185D3A971908
2 changed files with 6 additions and 4 deletions

View file

@ -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/*"

View file

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