web3.php/scripts/test.sh
2018-03-19 10:08:58 +08:00

15 lines
270 B
Bash
Executable File

#!/usr/bin/env bash
ganache-cli -g 0 -l 0 > /dev/null &
ganachecli_pid=$!
echo "Start ganache-cli pid: $ganachecli_pid and sleep 3 seconds"
sleep 3
vendor/bin/phpunit --coverage-clover=coverage.xml
ret=$?
kill -9 $ganachecli_pid
echo "Kill ganache-cli"
return $ret