try this out

This commit is contained in:
Dengke Tang
2023-02-27 15:36:28 -08:00
parent 7121cef4a6
commit 5184a70c16
2 changed files with 43 additions and 56 deletions
+1 -14
View File
@@ -12,20 +12,7 @@ set "script_dir=%~dp0"
set "work_dir=%script_dir%/.."
cd %work_dir%
set vendor_path=vendor
REM Run command to get composer_dir
set "composer_dir="
for /f "usebackq delims=" %%i in (`where composer.phar`) do set "composer_dir=%%i"
if not exist "%vendor_path%" (
REM Check if composer_dir was found
if "%composer_dir%"=="" (
echo No composer found.
exit /b 1
)
call %PHP_BINARY% -c php-win.ini %composer_dir% update
)
composer update
call %PHP_BINARY% -c php-win.ini vendor/bin/phpunit tests --debug
endlocal