From bb748cb5778806a483cc4b7260542a2c2765c42c Mon Sep 17 00:00:00 2001 From: jrfnl Date: Thu, 5 Dec 2019 03:21:44 +0100 Subject: [PATCH] Travis: add builds to test against PHP 7.3-7.4 Includes: * Removing `sudo: false`. Sudo hasn't been supported on Travis for quite a while now. * Making the _remove Xdebug_ command more stable when using recent PHP versions for which Xdebug may not be available yet. Note: for now running code coverage on PHP 7.3 rather than PHP 7.4 as Xdebug has not been installed on the PHP 7.4 Travis image yet. --- .travis.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5b3d2f3..20323fb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,3 @@ -sudo: false language: php dist: trusty @@ -12,12 +11,16 @@ cache: matrix: fast_finish: true include: - - php: 7.2 + - php: 7.4 env: WP_VERSION=trunk - - php: 7.2 + - php: 7.4 env: WP_VERSION=trunk COMPOSER_LOWEST=1 - - php: 7.2 + - php: 7.3 env: WP_VERSION=latest RUN_PHPCS=1 RUN_CODE_COVERAGE=1 + - php: 7.3 + env: WP_VERSION=latest + - php: 7.2 + env: WP_VERSION=latest - php: 7.1 env: WP_VERSION=latest - php: 7.0 @@ -31,7 +34,7 @@ before_script: chmod +x coveralls.phar mkdir -p build/logs else - phpenv config-rm xdebug.ini + phpenv config-rm xdebug.ini || echo 'No xdebug config.' fi - | if [[ ! -z "$WP_VERSION" ]]; then