fix batch script and add gitignore for windowa

This commit is contained in:
Dengke Tang
2023-02-25 00:21:35 -08:00
parent d296e61f23
commit 33f6c7aaf8
2 changed files with 8 additions and 6 deletions
+4 -5
View File
@@ -13,20 +13,19 @@ 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 Run command to get composer_dir
set "composer_dir="
for /f "usebackq delims=" %%i in (`where composer.phar`) do set "composer_dir=%%i"
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
)
call %PHP_BINARY% -c php-win.ini %composer_dir% update
call %PHP_BINARY% -c php-win.ini vendor/bin/phpunit tests --debug
endlocal