-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Fixed tests on Windows systems #410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,29 +1,51 @@ | ||
build: false | ||
platform: x86 | ||
clone_depth: 1 | ||
clone_folder: c:\projects\symfony-demo | ||
|
||
cache: | ||
- '%LOCALAPPDATA%\Composer\files' | ||
- '%LOCALAPPDATA%\Composer\files' | ||
- c:\projects\symfony-demo\composer.phar | ||
|
||
init: | ||
- SET PATH=C:\Program Files\OpenSSL;c:\tools\php;%PATH% | ||
- SET PATH=c:\php;%PATH% | ||
- SET COMPOSER_NO_INTERACTION=1 | ||
- SET SYMFONY_DEPRECATIONS_HELPER=strict | ||
- SET ANSICON=121x90 (121x90) | ||
- REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Command Processor" /v DelayedExpansion /t REG_DWORD /d 1 /f | ||
|
||
install: | ||
- cinst -y OpenSSL.Light | ||
- cinst -y php | ||
- cd c:\tools\php | ||
- copy php.ini-production php.ini /Y | ||
- echo date.timezone="UTC" >> php.ini | ||
- echo extension_dir=ext >> php.ini | ||
- echo extension=php_openssl.dll >> php.ini | ||
- echo extension=php_mbstring.dll >> php.ini | ||
- echo extension=php_intl.dll >> php.ini | ||
- echo extension=php_pdo_sqlite.dll >> php.ini | ||
- echo memory_limit=1G >> php.ini | ||
- cd %APPVEYOR_BUILD_FOLDER% | ||
- php -r "readfile('http://getcomposer.org/installer');" | php | ||
- php composer.phar install --no-interaction --no-progress | ||
- mkdir c:\php && cd c:\php | ||
- appveyor DownloadFile https://raw.githubusercontent.com/symfony/binary-utils/master/cacert.pem | ||
- appveyor DownloadFile http://windows.php.net/downloads/releases/archives/php-5.5.9-nts-Win32-VC11-x86.zip | ||
- 7z x php-5.5.9-nts-Win32-VC11-x86.zip -y >nul | ||
- del /Q *.zip | ||
- cd ext | ||
- appveyor DownloadFile http://windows.php.net/downloads/pecl/releases/apcu/4.0.10/php_apcu-4.0.10-5.5-nts-vc11-x86.zip | ||
- 7z x php_apcu-4.0.10-5.5-nts-vc11-x86.zip -y >nul | ||
- del /Q *.zip | ||
- cd .. | ||
- copy /Y php.ini-development php.ini | ||
- echo max_execution_time=1200 >> php.ini | ||
- echo date.timezone="America/Los_Angeles" >> php.ini | ||
- echo extension_dir=ext >> php.ini | ||
- echo zend_extension=php_opcache.dll >> php.ini | ||
- echo opcache.enable_cli=1 >> php.ini | ||
- echo extension=php_openssl.dll >> php.ini | ||
- echo extension=php_apcu.dll >> php.ini | ||
- echo apc.enable_cli=1 >> php.ini | ||
- echo extension=php_intl.dll >> php.ini | ||
- echo extension=php_mbstring.dll >> php.ini | ||
- echo extension=php_fileinfo.dll >> php.ini | ||
- echo extension=php_pdo_sqlite.dll >> php.ini | ||
- echo extension=php_curl.dll >> php.ini | ||
- echo curl.cainfo=c:\php\cacert.pem >> php.ini | ||
- cd c:\projects\symfony-demo | ||
- IF NOT EXIST composer.phar (appveyor DownloadFile https://getcomposer.org/download/1.2.1/composer.phar) | ||
- php composer.phar self-update | ||
- IF %APPVEYOR_REPO_BRANCH%==master (SET COMPOSER_ROOT_VERSION=dev-master) ELSE (SET COMPOSER_ROOT_VERSION=%APPVEYOR_REPO_BRANCH%.x-dev) | ||
- php composer.phar update --no-progress --ansi | ||
- SET COMPOSER_ROOT_VERSION= | ||
|
||
test_script: | ||
- cd %APPVEYOR_BUILD_FOLDER% | ||
- php ./vendor/bin/phpunit --verbose | ||
- cd c:\projects\symfony-demo | ||
- php vendor/bin/phpunit |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keeping the composer cache would still be a good idea though (Symfony does not do it due to the magic it does regarding subtree packages built on the fly, but you can do it)