From f8909216749c1b1d7d485e6dc60f3a8bf6f35899 Mon Sep 17 00:00:00 2001 From: webimpress Date: Mon, 16 Apr 2018 08:11:30 +0100 Subject: [PATCH] Updated Travis CI configuration - removed allow_failures on PHP 7.2 - removed composer self-update - updated legacy deps - simplified disabling xdebug - moved cs-check and coverage test to run on PHP 7.1 with locked deps --- .travis.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6ffe13c610..d37acea1a0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,10 +2,6 @@ sudo: false language: php -branches: - except: - - /^release-.*$/ - - /^ghgfk-.*$/ cache: directories: - $HOME/.composer/cache @@ -14,7 +10,6 @@ env: global: - COMPOSER_ARGS="--no-interaction" - COVERAGE_DEPS="satooshi/php-coveralls" - - LEGACY_DEPS="phpunit/phpunit" - TESTS_ZEND_HTTP_CLIENT_ONLINE=true matrix: @@ -25,8 +20,7 @@ matrix: - php: 5.6 env: - DEPS=locked - - CS_CHECK=true - - TEST_COVERAGE=true + - LEGACY_DEPS="phpunit/phpunit" - php: 5.6 env: - DEPS=latest @@ -36,6 +30,7 @@ matrix: - php: 7 env: - DEPS=locked + - LEGACY_DEPS="phpunit/phpunit" - php: 7 env: - DEPS=latest @@ -45,6 +40,8 @@ matrix: - php: 7.1 env: - DEPS=locked + - CS_CHECK=true + - TEST_COVERAGE=true - php: 7.1 env: - DEPS=latest @@ -57,16 +54,13 @@ matrix: - php: 7.2 env: - DEPS=latest - allow_failures: - - php: 7.2 before_install: - - if [[ $TEST_COVERAGE != 'true' && "$(php --version | grep xdebug -ci)" -ge 1 ]]; then phpenv config-rm xdebug.ini || return 0 ; fi - - travis_retry composer self-update + - if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi install: - travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs - - if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi + - if [[ $LEGACY_DEPS != '' ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi - if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi - if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi - if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi