mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 21:22:40 +00:00
97a8f473a7
- Adjusted some namespace case - Included Linux test runner; should also work with macOS - Made the PHP server run in the background on Windows
7 lines
No EOL
265 B
Bash
7 lines
No EOL
265 B
Bash
#! /bin/sh
|
|
base=`dirname "$0"`
|
|
php -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]+"`
|
|
kill $pid |