From b56cb1aa63d3753f12e5e0f9a1bcf75b389daaef Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Tue, 1 Sep 2015 11:02:43 +0200 Subject: [PATCH] Add testing against lowest dependencies --- .travis.yml | 14 ++++++++++---- composer.json | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index a9bc9fcd5..677ee0ecf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/composer.json b/composer.json index b0cd73ac1..0193f434f 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "require": { "php": ">=5.3.1", - "symfony/css-selector": "~2.0" + "symfony/css-selector": "~2.1" }, "require-dev": {