1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-23 08:14:56 +00:00
Arsse/tests/test.bat

11 lines
350 B
Batchfile
Raw Normal View History

@echo off
setlocal
set base=%~dp0
2017-12-07 20:09:03 +00:00
start /b php -n -S localhost:8000 "%base%server.php" >nul 2>nul
timeout /nobreak /t 1 >nul
2017-12-07 20:09:03 +00:00
call "%base%..\vendor\bin\phpunit" -c "%base%phpunit.xml" %*
timeout /nobreak /t 1 >nul
for /f "usebackq tokens=5" %%a in (`netstat -aon ^| find "LISTENING" ^| find ":8000"`) do (
taskkill /f /pid %%a >nul
goto :eof
)