[ci] fix phpunit wrapper
This commit is contained in:
parent
2dc28eaaf0
commit
25fbcc3746
24
appveyor.yml
24
appveyor.yml
@ -13,7 +13,7 @@ init:
|
|||||||
- SET SYMFONY_DEPRECATIONS_HELPER=weak
|
- SET SYMFONY_DEPRECATIONS_HELPER=weak
|
||||||
- SET PHP=1
|
- SET PHP=1
|
||||||
- SET ANSICON=121x90 (121x90)
|
- SET ANSICON=121x90 (121x90)
|
||||||
- SET PHP_INI_MATRIX=php.ini-min-ext php.ini-max-ext
|
- SET PHP_INI_MATRIX=php.ini-min php.ini-max
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- IF EXIST c:\php (SET PHP=0) ELSE (mkdir c:\php)
|
- IF EXIST c:\php (SET PHP=0) ELSE (mkdir c:\php)
|
||||||
@ -31,18 +31,18 @@ install:
|
|||||||
- IF %PHP%==1 7z x php_memcache-3.0.8-5.3-nts-vc9-x86.zip -y > 7z.log
|
- IF %PHP%==1 7z x php_memcache-3.0.8-5.3-nts-vc9-x86.zip -y > 7z.log
|
||||||
- IF %PHP%==1 cd ..
|
- IF %PHP%==1 cd ..
|
||||||
- IF %PHP%==1 echo @php %%~dp0composer.phar %%* > composer.bat
|
- IF %PHP%==1 echo @php %%~dp0composer.phar %%* > composer.bat
|
||||||
- IF %PHP%==1 copy /Y php.ini-development php.ini-min-ext
|
- IF %PHP%==1 copy /Y php.ini-development php.ini-min
|
||||||
- IF %PHP%==1 echo date.timezone="UTC" >> php.ini-min-ext
|
- IF %PHP%==1 echo date.timezone="UTC" >> php.ini-min
|
||||||
- IF %PHP%==1 echo extension_dir=ext >> php.ini-min-ext
|
- IF %PHP%==1 echo extension_dir=ext >> php.ini-min
|
||||||
- IF %PHP%==1 echo extension=php_openssl.dll >> php.ini-min-ext
|
- IF %PHP%==1 echo extension=php_openssl.dll >> php.ini-min
|
||||||
- IF %PHP%==1 copy /Y php.ini-min-ext php.ini-max-ext
|
- IF %PHP%==1 copy /Y php.ini-min php.ini-max
|
||||||
- IF %PHP%==1 echo extension=php_apc.dll >> php.ini-max-ext
|
- IF %PHP%==1 echo extension=php_apc.dll >> php.ini-max
|
||||||
- IF %PHP%==1 echo extension=php_intl.dll >> php.ini-max-ext
|
- IF %PHP%==1 echo extension=php_intl.dll >> php.ini-max
|
||||||
- IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini-max-ext
|
- IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini-max
|
||||||
- IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini-max-ext
|
- IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini-max
|
||||||
- IF %PHP%==1 echo extension=php_pdo_sqlite.dll >> php.ini-max-ext
|
- IF %PHP%==1 echo extension=php_pdo_sqlite.dll >> php.ini-max
|
||||||
- appveyor DownloadFile https://getcomposer.org/composer.phar
|
- appveyor DownloadFile https://getcomposer.org/composer.phar
|
||||||
- copy /Y php.ini-max-ext php.ini
|
- copy /Y php.ini-max php.ini
|
||||||
- cd c:\projects\symfony
|
- cd c:\projects\symfony
|
||||||
- php phpunit install
|
- php phpunit install
|
||||||
- IF %APPVEYOR_REPO_BRANCH%==master (SET COMPOSER_ROOT_VERSION=dev-master) ELSE (SET COMPOSER_ROOT_VERSION=%APPVEYOR_REPO_BRANCH%.x-dev)
|
- IF %APPVEYOR_REPO_BRANCH%==master (SET COMPOSER_ROOT_VERSION=dev-master) ELSE (SET COMPOSER_ROOT_VERSION=%APPVEYOR_REPO_BRANCH%.x-dev)
|
||||||
|
4
phpunit
4
phpunit
@ -24,10 +24,6 @@ if (!file_exists($COMPOSER = __DIR__.'/composer.phar')) {
|
|||||||
$PHP = ProcessUtils::escapeArgument($PHP);
|
$PHP = ProcessUtils::escapeArgument($PHP);
|
||||||
$COMPOSER = $PHP.' '.ProcessUtils::escapeArgument($COMPOSER);
|
$COMPOSER = $PHP.' '.ProcessUtils::escapeArgument($COMPOSER);
|
||||||
|
|
||||||
if (!(isset($argv[1]) && 'install' === $argv[1]) && !file_exists(__DIR__.'/vendor')) {
|
|
||||||
passthru("$COMPOSER update --no-progress --ansi");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit")) {
|
if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit")) {
|
||||||
// Build a standalone phpunit without symfony/yaml
|
// Build a standalone phpunit without symfony/yaml
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user