mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-18 01:57:13 +00:00
windows CI
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user