nim-web3/ci-test.sh

18 lines
351 B
Bash
Raw Normal View History

2019-06-12 16:46:29 +00:00
#!/bin/sh
set -ex
npm install hardhat
touch hardhat.config.js
nohup npx hardhat node &
nimble install -y --depsOnly
2019-06-12 16:46:29 +00:00
# Wait until ganache responds
while ! curl -X POST --data '{"jsonrpc":"2.0","method":"net_version","params":[],"id":67}' localhost:8545 2>/dev/null
do
sleep 1
2019-06-12 16:46:29 +00:00
done
if [[ -n "${TEST_LANG}" ]]; then
export TEST_LANG
fi
nimble test