diff --git a/.travis.yml b/.travis.yml index 89eeba69..200f3d6f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,10 +9,25 @@ cache: matrix: include: - php: 5.5 + env: COMPOSER_VERSION="" + - php: 5.5 + env: COMPOSER_VERSION="1.2.x-dev" + - php: 5.6 + env: COMPOSER_VERSION="" - php: 5.6 + env: COMPOSER_VERSION="1.2.x-dev" + - php: 7.0 + env: COMPOSER_VERSION="" - php: 7.0 + env: COMPOSER_VERSION="1.2.x-dev" - php: hhvm + env: COMPOSER_VERSION="" + - php: hhvm + env: COMPOSER_VERSION="1.2.x-dev" + - php: nightly + env: COMPOSER_VERSION="" - php: nightly + env: COMPOSER_VERSION="1.2.x-dev" allow_failures: - php: nightly @@ -22,7 +37,9 @@ matrix: before_script: - composer self-update - composer global require --prefer-source phpunit/phpunit:"^4.8 || 5.3.*" satooshi/php-coveralls:^1.0.0 - - composer install --prefer-source + - if [ "$COMPOSER_VERSION" == "" ]; then composer install --prefer-source; fi; + - if [ "$COMPOSER_VERSION" != "" ]; then composer require "composer/composer:${COMPOSER_VERSION}" --no-update; fi; + - if [ "$COMPOSER_VERSION" != "" ]; then composer update "composer/composer" --prefer-source; fi; - mkdir -p ./build/logs script: