-
Notifications
You must be signed in to change notification settings - Fork 280
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
Add testing against lowest dependencies #668
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,21 +2,27 @@ language: php | |
|
||
sudo: false | ||
|
||
php: [5.3, 5.4, 5.5, 5.6, nightly, hhvm] | ||
php: [5.3, 5.4, 5.5, 5.6, 7.0, hhvm] | ||
|
||
matrix: | ||
fast_finish: true | ||
include: | ||
- php: 5.3 | ||
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable' SYMFONY_DEPRECATIONS_HELPER=weak | ||
allow_failures: | ||
- php: nightly | ||
- php: 7.0 | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache/files | ||
|
||
before_install: | ||
- composer self-update | ||
|
||
install: | ||
- composer install | ||
- composer update $COMPOSER_FLAGS | ||
|
||
script: phpunit -v --coverage-clover=coverage.clover | ||
|
||
after_script: | ||
- if [ "nightly" != "$TRAVIS_PHP_VERSION" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi | ||
- if [[ "7.0" != "$TRAVIS_PHP_VERSION" && "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. recent PHPUnit versions are not able to generate code coverage on the old HHVM 3.5 (which is still used by Travis), so I avoid notifying Scrutinizer of a missing coverage. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
|
||
"require": { | ||
"php": ">=5.3.1", | ||
"symfony/css-selector": "~2.0" | ||
"symfony/css-selector": "~2.1" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Early 2.0 components have broken autoloading configurating, making them unusable with Composer |
||
}, | ||
|
||
"require-dev": { | ||
|
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.
I switch to 7.0 instead of nightly, so that this can use 7.0 releases once they become available on Travis. currently, it is just an alias for nightly