2019-06-12 16:46:29 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -ex
|
2021-05-18 04:43:40 +00:00
|
|
|
npm install ganache-cli
|
|
|
|
nohup ./node_modules/.bin/ganache-cli -s 0 &
|
2019-06-12 16:46:29 +00:00
|
|
|
nimble install -y
|
|
|
|
|
|
|
|
# Wait until ganache responds
|
|
|
|
while ! curl -X POST --data '{"jsonrpc":"2.0","method":"net_version","params":[],"id":67}' localhost:8545 2>/dev/null
|
|
|
|
do
|
|
|
|
true
|
|
|
|
done
|
2021-05-18 04:43:40 +00:00
|
|
|
env TEST_LANG="$TEST_LANG" nimble test
|