From fcf4e56d0d7e399709ae558f25555bdb30de9bbe Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Tue, 16 Oct 2018 10:22:29 -0300 Subject: [PATCH 1/2] Add upcoming PHP 7.3 to the list of versions tested in Travis --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 38f5033cad8..7e0111b91dd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,6 +13,7 @@ php: - 5.6 - 7.0 - 7.1 + - 7.3 env: - WP_VERSION=latest WP_MULTISITE=0 @@ -32,6 +33,7 @@ matrix: env: WP_VERSION=latest WP_MULTISITE=0 RUN_CODE_COVERAGE=1 allow_failures: - env: WP_VERSION=latest WP_MULTISITE=0 RUN_CODE_COVERAGE=1 + - php: 7.3 before_script: - phpenv config-rm xdebug.ini From 9fac8cc8ad7e05332d888bac118884128d9f46be Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Tue, 16 Oct 2018 10:36:25 -0300 Subject: [PATCH 2/2] Remove xdebug.ini only if it exists This commit adds an if to check if xdebug.ini exists before trying to remove it. Doing this to avoid a build error in PHP versions where the file doesn't exist like PHP 7.3. --- .travis.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 7e0111b91dd..4811f23967f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -36,7 +36,13 @@ matrix: - php: 7.3 before_script: - - phpenv config-rm xdebug.ini + - | + # Remove Xdebug for a huge performance increase: + if [ -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]; then + phpenv config-rm xdebug.ini + else + echo "xdebug.ini does not exist" + fi - export PATH="$HOME/.composer/vendor/bin:$PATH" - bash tests/bin/install.sh woocommerce_test root '' localhost $WP_VERSION - bash tests/bin/travis.sh before