mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-18 10:07:12 +00:00
fix batch script and add gitignore for windowa
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user