mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 13:12:41 +00:00
8 lines
No EOL
256 B
Bash
Executable file
8 lines
No EOL
256 B
Bash
Executable file
#! /bin/sh
|
|
base=`dirname "$0"`
|
|
php -n -S localhost:8000 "$base/server.php" >/dev/null &
|
|
sleep 1s
|
|
php "$base/../vendor/phpunit/phpunit/phpunit" -c "$base/phpunit.xml" $*
|
|
sleep 1s
|
|
pid=`lsof -n -i:8000 | grep -Eo "php\s+[0-9]+" | grep -Eo "[0-9]+"`
|
|
kill $pid |