test.sh 274 B

123456789101112131415
  1. #!/usr/bin/env bash
  2. ganache-cli -g 0 -l 6000000 > /dev/null &
  3. ganachecli_pid=$!
  4. echo "Start ganache-cli pid: $ganachecli_pid and sleep 3 seconds"
  5. sleep 3
  6. vendor/bin/phpunit --coverage-clover=coverage.xml
  7. ret=$?
  8. kill -9 $ganachecli_pid
  9. echo "Kill ganache-cli"
  10. exit $ret