fix batch script and add gitignore for windowa

This commit is contained in:
Dengke Tang
2023-02-27 15:38:45 -08:00
parent f507c6c95c
commit b3c371ab29
+4 -5
View File
@@ -13,20 +13,19 @@ set "work_dir=%script_dir%/.."
cd %work_dir% cd %work_dir%
set vendor_path=vendor 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%" ( 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 REM Check if composer_dir was found
if "%composer_dir%"=="" ( if "%composer_dir%"=="" (
echo No composer found. echo No composer found.
exit /b 1 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 call %PHP_BINARY% -c php-win.ini vendor/bin/phpunit tests --debug
endlocal endlocal