2015-08-18 15:04:52 +01:00
|
|
|
build: false
|
2018-09-03 13:29:28 +01:00
|
|
|
clone_depth: 2
|
2015-08-18 15:04:52 +01:00
|
|
|
clone_folder: c:\projects\symfony
|
|
|
|
|
|
|
|
cache:
|
2017-01-03 07:41:06 +00:00
|
|
|
- composer.phar
|
2020-04-12 10:36:17 +01:00
|
|
|
- .phpunit -> phpunit
|
2015-08-18 15:04:52 +01:00
|
|
|
|
|
|
|
init:
|
|
|
|
- SET PATH=c:\php;%PATH%
|
|
|
|
- SET COMPOSER_NO_INTERACTION=1
|
2015-08-26 19:16:18 +01:00
|
|
|
- SET SYMFONY_DEPRECATIONS_HELPER=strict
|
|
|
|
- SET ANSICON=121x90 (121x90)
|
2017-04-27 20:48:43 +01:00
|
|
|
- SET SYMFONY_PHPUNIT_VERSION=4.8
|
2019-08-10 19:54:30 +01:00
|
|
|
- SET SYMFONY_PHPUNIT_DISABLE_RESULT_CACHE=1
|
2016-02-01 13:16:12 +00:00
|
|
|
- REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Command Processor" /v DelayedExpansion /t REG_DWORD /d 1 /f
|
2015-08-18 15:04:52 +01:00
|
|
|
|
|
|
|
install:
|
2016-08-10 09:06:54 +01:00
|
|
|
- mkdir c:\php && cd c:\php
|
|
|
|
- appveyor DownloadFile https://raw.githubusercontent.com/symfony/binary-utils/master/cacert.pem
|
2017-04-27 20:48:43 +01:00
|
|
|
- appveyor DownloadFile https://github.com/symfony/binary-utils/releases/download/v0.1/php-5.5.9-nts-Win32-VC11-x86.zip
|
2017-05-18 13:41:01 +01:00
|
|
|
- appveyor DownloadFile https://github.com/symfony/binary-utils/releases/download/v0.1/php-7.1.3-Win32-VC14-x86.zip
|
2018-04-26 16:59:35 +01:00
|
|
|
- 7z x php-7.1.3-Win32-VC14-x86.zip -y >nul
|
2016-08-10 09:06:54 +01:00
|
|
|
- cd ext
|
2017-04-27 20:48:43 +01:00
|
|
|
- appveyor DownloadFile https://github.com/symfony/binary-utils/releases/download/v0.1/php_apcu-4.0.10-5.5-nts-vc11-x86.zip
|
2016-08-10 12:09:50 +01:00
|
|
|
- 7z x php_apcu-4.0.10-5.5-nts-vc11-x86.zip -y >nul
|
2017-04-27 20:48:43 +01:00
|
|
|
- appveyor DownloadFile https://github.com/symfony/binary-utils/releases/download/v0.1/php_memcache-3.0.8-5.5-nts-vc11-x86.zip
|
2016-08-10 12:09:50 +01:00
|
|
|
- 7z x php_memcache-3.0.8-5.5-nts-vc11-x86.zip -y >nul
|
2016-08-10 09:06:54 +01:00
|
|
|
- cd ..
|
|
|
|
- copy /Y php.ini-development php.ini-min
|
2018-01-16 17:32:27 +00:00
|
|
|
- echo memory_limit=-1 >> php.ini-min
|
2017-04-27 20:48:43 +01:00
|
|
|
- echo serialize_precision=14 >> php.ini-min
|
2016-08-10 09:06:54 +01:00
|
|
|
- echo max_execution_time=1200 >> php.ini-min
|
2016-11-17 15:59:01 +00:00
|
|
|
- echo date.timezone="America/Los_Angeles" >> php.ini-min
|
2016-08-10 09:06:54 +01:00
|
|
|
- echo extension_dir=ext >> php.ini-min
|
|
|
|
- copy /Y php.ini-min php.ini-max
|
2016-08-10 12:10:50 +01:00
|
|
|
- echo zend_extension=php_opcache.dll >> php.ini-max
|
|
|
|
- echo opcache.enable_cli=1 >> php.ini-max
|
2016-08-10 09:06:54 +01:00
|
|
|
- echo extension=php_openssl.dll >> php.ini-max
|
|
|
|
- echo extension=php_apcu.dll >> php.ini-max
|
|
|
|
- echo apc.enable_cli=1 >> php.ini-max
|
|
|
|
- echo extension=php_memcache.dll >> php.ini-max
|
|
|
|
- echo extension=php_intl.dll >> php.ini-max
|
|
|
|
- echo extension=php_mbstring.dll >> php.ini-max
|
|
|
|
- echo extension=php_fileinfo.dll >> php.ini-max
|
|
|
|
- echo extension=php_pdo_sqlite.dll >> php.ini-max
|
|
|
|
- echo extension=php_curl.dll >> php.ini-max
|
|
|
|
- echo curl.cainfo=c:\php\cacert.pem >> php.ini-max
|
2018-04-26 16:59:35 +01:00
|
|
|
- copy /Y php.ini-min php.ini
|
|
|
|
- echo extension=php_openssl.dll >> php.ini
|
2020-10-24 13:44:01 +01:00
|
|
|
- echo extension=php_curl.dll >> php.ini
|
|
|
|
- echo curl.cainfo=c:\php\cacert.pem >> php.ini
|
2015-08-18 15:04:52 +01:00
|
|
|
- cd c:\projects\symfony
|
2020-10-24 13:44:01 +01:00
|
|
|
- IF NOT EXIST composer.phar (appveyor DownloadFile https://github.com/composer/composer/releases/download/2.0.0/composer.phar)
|
|
|
|
- php composer.phar self-update --2
|
2019-09-20 17:57:15 +01:00
|
|
|
- copy /Y .github\composer-config.json %APPDATA%\Composer\config.json
|
2020-10-07 13:58:11 +01:00
|
|
|
- php composer.phar global require --no-progress --no-scripts --no-plugins symfony/flex
|
2019-10-15 08:35:54 +01:00
|
|
|
- git config --global user.email ""
|
|
|
|
- git config --global user.name "Symfony"
|
2020-10-24 13:44:01 +01:00
|
|
|
- FOR /F "tokens=* USEBACKQ" %%F IN (`bash -c "grep branch-version composer.json | grep -o '[0-9.]*'"`) DO (SET SYMFONY_VERSION=%%F)
|
|
|
|
- php .github/build-packages.php "HEAD^" %SYMFONY_VERSION% src\Symfony\Bridge\PhpUnit
|
|
|
|
- SET "SYMFONY_REQUIRE=>=%SYMFONY_VERSION%"
|
|
|
|
- SET COMPOSER_ROOT_VERSION=%SYMFONY_VERSION%.x-dev
|
|
|
|
- php composer.phar config --global platform.php 5.5.9
|
|
|
|
- php composer.phar update --no-progress --ansi
|
2016-09-12 11:06:58 +01:00
|
|
|
- php phpunit install
|
2015-08-18 15:04:52 +01:00
|
|
|
|
|
|
|
test_script:
|
2015-10-13 15:18:22 +01:00
|
|
|
- SET X=0
|
2018-04-26 16:59:35 +01:00
|
|
|
- cd c:\php && copy /Y php.ini-min php.ini
|
2017-04-27 20:48:43 +01:00
|
|
|
- cd c:\projects\symfony
|
2020-10-06 12:42:19 +01:00
|
|
|
- IF %APPVEYOR_REPO_BRANCH:~-2% neq .x (rm -Rf src\Symfony\Bridge\PhpUnit)
|
2017-04-27 20:48:43 +01:00
|
|
|
- php phpunit src\Symfony --exclude-group benchmark,intl-data || SET X=!errorlevel!
|
|
|
|
- cd c:\php && 7z x php-5.5.9-nts-Win32-VC11-x86.zip -y >nul && copy /Y php.ini-min php.ini
|
|
|
|
- cd c:\projects\symfony
|
|
|
|
- SET SYMFONY_PHPUNIT_SKIPPED_TESTS=phpunit.skipped
|
2016-09-12 11:06:58 +01:00
|
|
|
- php phpunit src\Symfony --exclude-group benchmark,intl-data || SET X=!errorlevel!
|
2015-10-13 15:18:22 +01:00
|
|
|
- copy /Y c:\php\php.ini-max c:\php\php.ini
|
2016-09-12 11:06:58 +01:00
|
|
|
- php phpunit src\Symfony --exclude-group benchmark,intl-data || SET X=!errorlevel!
|
2015-10-13 15:18:22 +01:00
|
|
|
- exit %X%
|