Skip to content

Commit

Permalink
Merge pull request #668 from stof/test_lowest_deps
Browse files Browse the repository at this point in the history
Add testing against lowest dependencies
  • Loading branch information
stof committed Sep 20, 2015
2 parents 79fde5a + b56cb1a commit 377ecba
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

"require": {
"php": ">=5.3.1",
"symfony/css-selector": "~2.0"
"symfony/css-selector": "~2.1"
},

"require-dev": {
Expand Down

0 comments on commit 377ecba

Please sign in to comment.