J. King
7 years ago
3 changed files with 4 additions and 4 deletions
@ -1,7 +1,7 @@ |
|||
#! /bin/sh |
|||
base=`dirname "$0"` |
|||
php -S localhost:8000 "$base/server.php" >/dev/null & |
|||
php -n -S localhost:8000 "$base/server.php" >/dev/null & |
|||
php "$base/../vendor/phpunit/phpunit/phpunit" -c "$base/phpunit.xml" |
|||
sleep 1s |
|||
pid=`netstat -tlpn 2>/dev/null | grep ":8000 " | grep -Eo "[0-9]+/php" | grep -Eo "[0-9]+"` |
|||
pid=`lsof -n -i:8000 | grep -Eo "php\s+[0-9]+" | grep -Eo "[0-9]+"` |
|||
kill $pid |
Loading…
Reference in new issue