mirror of openzeppelin-contracts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#! /bin/bash
|
|
|
|
output=$(nc -z localhost 8545; echo $?)
|
|
[ $output -eq "0" ] && trpc_running=true
|
|
if [ ! $trpc_running ]; then
|
|
echo "Starting our own testrpc node instance"
|
|
testrpc > /dev/null &
|
|
trpc_pid=$!
|
|
fi
|
|
truffle test
|
|
if [ ! $trpc_running ]; then
|
|
kill -9 $trpc_pid
|
|
fi
|
|
|