2015-08-18 15:04:52 +01:00
|
|
|
build: false
|
2016-02-22 16:04:21 +00:00
|
|
|
clone_depth: 1
|
2015-08-18 15:04:52 +01:00
|
|
|
clone_folder: c:\projects\symfony
|
|
|
|
|
|
|
|
cache:
|
2017-01-03 07:41:06 +00:00
|
|
|
- composer.phar
|
2015-08-18 15:04:52 +01:00
|
|
|
- .phpunit -> phpunit
|
|
|
|
|
|
|
|
init:
|
|
|
|
- SET PATH=c:\php;%PATH%
|
|
|
|
- SET COMPOSER_NO_INTERACTION=1
|
2015-08-26 19:16:18 +01:00
|
|
|
- SET SYMFONY_DEPRECATIONS_HELPER=strict
|
2018-08-18 17:47:20 +01:00
|
|
|
- SET "SYMFONY_REQUIRE=>=3.4"
|
2015-08-26 19:16:18 +01:00
|
|
|
- SET ANSICON=121x90 (121x90)
|
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
|
2017-05-18 08:23:23 +01:00
|
|
|
- appveyor DownloadFile https://github.com/symfony/binary-utils/releases/download/v0.1/php-7.1.3-Win32-VC14-x86.zip
|
|
|
|
- 7z x php-7.1.3-Win32-VC14-x86.zip -y >nul
|
2016-08-10 09:06:54 +01:00
|
|
|
- cd ext
|
2017-05-18 08:23:23 +01:00
|
|
|
- appveyor DownloadFile https://github.com/symfony/binary-utils/releases/download/v0.1/php_apcu-5.1.8-7.1-ts-vc14-x86.zip
|
|
|
|
- 7z x php_apcu-5.1.8-7.1-ts-vc14-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_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
|
2015-10-07 07:18:30 +01:00
|
|
|
- copy /Y php.ini-max php.ini
|
2015-08-18 15:04:52 +01:00
|
|
|
- cd c:\projects\symfony
|
2018-08-14 10:06:16 +01:00
|
|
|
- IF NOT EXIST composer.phar (appveyor DownloadFile https://github.com/composer/composer/releases/download/1.7.1/composer.phar)
|
2016-08-10 09:06:54 +01:00
|
|
|
- php composer.phar self-update
|
2016-04-01 19:46:52 +01:00
|
|
|
- copy /Y .composer\* %APPDATA%\Composer\
|
2018-08-14 10:06:16 +01:00
|
|
|
- php composer.phar global require --no-progress symfony/flex dev-master
|
2016-09-13 12:35:02 +01:00
|
|
|
- php .github/build-packages.php "HEAD^" src\Symfony\Bridge\PhpUnit
|
2015-08-18 15:04:52 +01:00
|
|
|
- IF %APPVEYOR_REPO_BRANCH%==master (SET COMPOSER_ROOT_VERSION=dev-master) ELSE (SET COMPOSER_ROOT_VERSION=%APPVEYOR_REPO_BRANCH%.x-dev)
|
2018-04-26 16:59:35 +01:00
|
|
|
- php composer.phar update --no-progress --no-suggest --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
|
2017-04-27 20:48:43 +01:00
|
|
|
- SET SYMFONY_PHPUNIT_SKIPPED_TESTS=phpunit.skipped
|
2017-05-18 08:23:23 +01:00
|
|
|
- copy /Y c:\php\php.ini-min 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
|
|
|
- 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%
|