web3.php/scripts/test.sh
sc0Vu 234b1e695f Fix failed test on travis
* Change gas limt to 6000000
* Change ganache container compose file
2018-06-24 22:30:34 +08:00

15 lines
274 B
Bash
Executable File

#!/usr/bin/env bash
ganache-cli -g 0 -l 6000000 > /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