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:
|
|
|
|
- c:\php -> appveyor.yml
|
|
|
|
- .phpunit -> phpunit
|
|
|
|
|
|
|
|
init:
|
|
|
|
- SET PATH=c:\php;%PATH%
|
|
|
|
- SET COMPOSER_NO_INTERACTION=1
|
|
|
|
- SET SYMFONY_DEPRECATIONS_HELPER=weak
|
|
|
|
- SET PHP=1
|
2015-10-01 13:01:27 +01:00
|
|
|
- SET ANSICON=121x90 (121x90)
|
2015-10-09 17:17:11 +01:00
|
|
|
- SET SYMFONY_PHPUNIT_SKIPPED_TESTS=phpunit.skipped
|
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:
|
|
|
|
- IF EXIST c:\php (SET PHP=0) ELSE (mkdir c:\php)
|
|
|
|
- cd c:\php
|
2016-05-11 23:02:33 +01:00
|
|
|
- IF %PHP%==1 appveyor DownloadFile https://raw.githubusercontent.com/symfony/binary-utils/master/cacert.pem
|
2015-08-28 06:48:22 +01:00
|
|
|
- IF %PHP%==1 appveyor DownloadFile http://windows.php.net/downloads/releases/archives/php-5.3.3-nts-Win32-VC9-x86.zip
|
2015-10-13 09:49:36 +01:00
|
|
|
- IF %PHP%==1 7z x php-5.3.3-nts-Win32-VC9-x86.zip -y >nul
|
2016-03-30 10:37:19 +01:00
|
|
|
- IF %PHP%==1 appveyor DownloadFile https://raw.githubusercontent.com/symfony/binary-utils/master/ICU-51.2-dlls.zip
|
2015-10-13 09:49:36 +01:00
|
|
|
- IF %PHP%==1 7z x ICU-51.2-dlls.zip -y >nul
|
|
|
|
- IF %PHP%==1 del /Q *.zip
|
2015-08-18 15:04:52 +01:00
|
|
|
- IF %PHP%==1 cd ext
|
2016-03-30 10:37:19 +01:00
|
|
|
- IF %PHP%==1 appveyor DownloadFile https://raw.githubusercontent.com/symfony/binary-utils/master/php_intl-3.0.0-5.3-nts-vc9-x86.zip
|
2015-10-13 09:49:36 +01:00
|
|
|
- IF %PHP%==1 7z x php_intl-3.0.0-5.3-nts-vc9-x86.zip -y >nul
|
2015-12-11 18:21:41 +00:00
|
|
|
- IF %PHP%==1 appveyor DownloadFile http://windows.php.net/downloads/pecl/releases/apcu/4.0.10/php_apcu-4.0.10-5.3-nts-vc9-x86.zip
|
|
|
|
- IF %PHP%==1 7z x php_apcu-4.0.10-5.3-nts-vc9-x86.zip -y >nul
|
2015-08-28 06:48:22 +01:00
|
|
|
- IF %PHP%==1 appveyor DownloadFile http://windows.php.net/downloads/pecl/releases/memcache/3.0.8/php_memcache-3.0.8-5.3-nts-vc9-x86.zip
|
2015-10-13 09:49:36 +01:00
|
|
|
- IF %PHP%==1 7z x php_memcache-3.0.8-5.3-nts-vc9-x86.zip -y >nul
|
|
|
|
- IF %PHP%==1 del /Q *.zip
|
2015-08-18 15:04:52 +01:00
|
|
|
- IF %PHP%==1 cd ..
|
|
|
|
- IF %PHP%==1 echo @php %%~dp0composer.phar %%* > composer.bat
|
2015-10-07 07:18:30 +01:00
|
|
|
- IF %PHP%==1 copy /Y php.ini-development php.ini-min
|
2015-10-09 17:17:11 +01:00
|
|
|
- IF %PHP%==1 echo max_execution_time=1200 >> php.ini-min
|
2015-10-07 07:18:30 +01:00
|
|
|
- IF %PHP%==1 echo date.timezone="UTC" >> php.ini-min
|
|
|
|
- IF %PHP%==1 echo extension_dir=ext >> php.ini-min
|
|
|
|
- IF %PHP%==1 copy /Y php.ini-min php.ini-max
|
2016-03-23 14:51:24 +00:00
|
|
|
- IF %PHP%==1 echo extension=php_openssl.dll >> php.ini-max
|
2015-10-12 10:03:54 +01:00
|
|
|
- IF %PHP%==1 echo extension=php_apcu.dll >> php.ini-max
|
|
|
|
- IF %PHP%==1 echo apc.enable_cli=1 >> php.ini-max
|
2015-10-12 10:43:29 +01:00
|
|
|
- IF %PHP%==1 echo extension=php_memcache.dll >> php.ini-max
|
2015-10-07 07:18:30 +01:00
|
|
|
- IF %PHP%==1 echo extension=php_intl.dll >> php.ini-max
|
|
|
|
- IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini-max
|
|
|
|
- IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini-max
|
|
|
|
- IF %PHP%==1 echo extension=php_pdo_sqlite.dll >> php.ini-max
|
2016-03-23 14:51:24 +00:00
|
|
|
- IF %PHP%==1 echo extension=php_curl.dll >> php.ini-max
|
|
|
|
- IF %PHP%==1 echo curl.cainfo=c:\php\cacert.pem >> php.ini-max
|
2016-05-11 23:02:33 +01:00
|
|
|
- IF %PHP%==1 appveyor DownloadFile https://getcomposer.org/download/1.0.3/composer.phar
|
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
|
2015-12-29 15:09:05 +00:00
|
|
|
- mkdir %APPDATA%\Composer
|
2016-04-01 19:46:52 +01:00
|
|
|
- copy /Y .composer\* %APPDATA%\Composer\
|
2015-08-18 15:04:52 +01:00
|
|
|
- php phpunit install
|
|
|
|
- IF %APPVEYOR_REPO_BRANCH%==master (SET COMPOSER_ROOT_VERSION=dev-master) ELSE (SET COMPOSER_ROOT_VERSION=%APPVEYOR_REPO_BRANCH%.x-dev)
|
2016-03-23 09:13:06 +00:00
|
|
|
- composer update --no-progress --ansi
|
2015-08-18 15:04:52 +01:00
|
|
|
|
|
|
|
test_script:
|
|
|
|
- cd c:\projects\symfony
|
2015-10-13 15:18:22 +01:00
|
|
|
- SET X=0
|
|
|
|
- copy /Y c:\php\php.ini-min c:\php\php.ini
|
2015-12-23 08:59:09 +00:00
|
|
|
- php phpunit 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
|
2015-12-23 08:59:09 +00:00
|
|
|
- php phpunit symfony --exclude-group benchmark,intl-data || SET X=!errorlevel!
|
2015-10-13 15:18:22 +01:00
|
|
|
- exit %X%
|