-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #978 Try to fix AppVeyor issues (javiereguiluz)
This PR was squashed before being merged into the master branch (closes #978). Discussion ---------- Try to fix AppVeyor issues I copied everything from Symfony's config file. Let's see if it works for us. Commits ------- d1100be Try to fix AppVeyor issues
- Loading branch information
Showing
1 changed file
with
26 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,45 @@ | ||
build: false | ||
shallow_clone: true | ||
platform: x86 | ||
clone_depth: 1 | ||
clone_folder: c:\projects\easyadmin-bundle | ||
|
||
cache: | ||
- c:\php -> appveyor.yml | ||
- .phpunit -> phpunit | ||
|
||
init: | ||
- SET PATH=c:\php;%PATH% | ||
- SET COMPOSER_NO_INTERACTION=1 | ||
- SET SYMFONY_DEPRECATIONS_HELPER=strict | ||
- SET PHP=1 | ||
- SET ANSICON=121x90 (121x90) | ||
|
||
install: | ||
- IF EXIST c:\php (SET PHP=0) ELSE (mkdir c:\php) | ||
- cd c:\php | ||
- IF %PHP%==1 appveyor DownloadFile http://windows.php.net/downloads/releases/archives/php-5.5.9-nts-Win32-VC11-x86.zip | ||
- IF %PHP%==1 7z x php-5.5.9-nts-Win32-VC11-x86.zip -y >nul | ||
- IF %PHP%==1 del /Q *.zip | ||
- IF %PHP%==1 echo @php %%~dp0composer.phar %%* > composer.bat | ||
- IF %PHP%==1 copy /Y php.ini-development php.ini | ||
- IF %PHP%==1 echo max_execution_time=1200 >> php.ini | ||
- IF %PHP%==1 echo date.timezone="UTC" >> php.ini | ||
- IF %PHP%==1 echo extension_dir=ext >> php.ini | ||
- IF %PHP%==1 echo extension=php_openssl.dll >> php.ini | ||
- IF %PHP%==1 echo apc.enable_cli=1 >> php.ini | ||
- IF %PHP%==1 echo extension=php_intl.dll >> php.ini | ||
- IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini | ||
- IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini | ||
- IF %PHP%==1 echo extension=php_pdo_sqlite.dll >> php.ini | ||
- appveyor DownloadFile https://getcomposer.org/composer.phar | ||
- appveyor DownloadFile https://phar.phpunit.de/phpunit-4.8.15.phar | ||
- appveyor DownloadFile http://windows.php.net/downloads/releases/archives/php-5.3.11-nts-Win32-VC9-x86.zip | ||
- 7z x php-5.3.11-nts-Win32-VC9-x86.zip -y >nul | ||
- copy /Y php.ini-development php.ini | ||
- echo max_execution_time=1200 >> php.ini | ||
- echo date.timezone="UTC" >> php.ini | ||
- echo extension_dir=ext >> php.ini | ||
- echo apc.enable_cli=1 >> php.ini | ||
- echo extension=php_openssl.dll >> php.ini | ||
- echo extension=php_intl.dll >> php.ini | ||
- echo extension=php_mbstring.dll >> php.ini | ||
- echo extension=php_pdo_sqlite.dll >> php.ini | ||
- appveyor DownloadFile https://phar.phpunit.de/phpunit-old.phar | ||
- copy /Y phpunit-old.phar phpunit.phar | ||
- cd c:\projects\easyadmin-bundle | ||
- composer.phar update %COMPOSER_FLAGS% --prefer-source --ansi | ||
- mkdir %APPDATA%\Composer | ||
- IF %APPVEYOR_REPO_BRANCH%==master (SET COMPOSER_ROOT_VERSION=dev-master) ELSE (SET COMPOSER_ROOT_VERSION=%APPVEYOR_REPO_BRANCH%.x-dev) | ||
- composer update --prefer-dist --no-progress --ansi | ||
|
||
test_script: | ||
- phpunit-4.8.15.phar | ||
- cd c:\projects\easyadmin-bundle | ||
- SET X=0 | ||
- php c:\php\phpunit.phar | ||
- exit %X% |