web3.php/scripts/test.sh
2018-04-24 17:02:57 +03:00

15 lines
268 B
Bash

#!/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"
exit $ret