nwaku/vendor/nim-web3/ci-test.sh

15 lines
309 B
Bash
Raw Normal View History

#!/bin/sh
set -ex
npm install hardhat
touch hardhat.config.js
nohup npx hardhat node &
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
env TEST_LANG="$TEST_LANG" nimble test