windows CI

This commit is contained in:
Dengke Tang
2023-02-23 14:54:30 -08:00
parent 7d56d185e8
commit 26ab397cd5
3 changed files with 44 additions and 19 deletions
+15 -3
View File
@@ -1,6 +1,18 @@
@echo on
setlocal
cd ..
REM Run command to get composer_dir
set "composer_dir="
for /f "usebackq delims=" %%i in (`where composer.phar`) do set "composer_dir=%%i"
%PHP_BINARY% -c php-win.ini vendor/bin/phpunit tests --debug
REM Check if composer_dir was found
if "%composer_dir%"=="" (
echo No composer found.
exit /b 1
) else (
cd ..
php -c php-win.ini %composer_dir% update
php -c php-win.ini vendor/bin/phpunit tests --debug
)
endlocal