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 -1
View File
@@ -1,4 +1,3 @@
# Created by https://www.toptal.com/developers/gitignore/api/autotools,cmake,phpstorm # Created by https://www.toptal.com/developers/gitignore/api/autotools,cmake,phpstorm
# Edit at https://www.toptal.com/developers/gitignore?templates=autotools,cmake,phpstorm # Edit at https://www.toptal.com/developers/gitignore?templates=autotools,cmake,phpstorm
@@ -182,6 +181,8 @@ fabric.properties
build/ build/
configure.in configure.in
configure.ac configure.ac
configure.bat
configure.js
mkinstalldirs mkinstalldirs
run-tests.php run-tests.php
Makefile.global Makefile.global
@@ -191,6 +192,7 @@ modules/
*.lo *.lo
config.h config.h
config.nice config.nice
config.nice.bat
*.la *.la
Makefile* Makefile*
!Makefile.am !Makefile.am
@@ -204,6 +206,7 @@ PHP-Parser*/
src/*.so src/*.so
src/*.dylib src/*.dylib
src/*.dll src/*.dll
/x64/
# ignoring output of package.xml as it needs to be generated from ./prepare_release.sh in each publishing # ignoring output of package.xml as it needs to be generated from ./prepare_release.sh in each publishing
package.xml package.xml
+2 -3
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
if not exist "%vendor_path%" (
REM Run command to get composer_dir REM Run command to get composer_dir
set "composer_dir=" set "composer_dir="
for /f "usebackq delims=" %%i in (`where composer.phar`) do set "composer_dir=%%i" 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 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