From 89542a9fb84ce6b61fa67df5ba2f904a1633864f Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Fri, 10 Nov 2017 19:51:14 -0200 Subject: [PATCH] Disable XDebug to speed up Travis builds This commit removes Xdebug from PHP runtime on all build jobs except PHP 7.1 to speed up Travis builds. Xdebug is needed in the PHP 7.1 build job because this job is used to generate code coverage. --- tests/bin/travis.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/bin/travis.sh b/tests/bin/travis.sh index 4dc7d5a1c10..425d4fdbe6e 100755 --- a/tests/bin/travis.sh +++ b/tests/bin/travis.sh @@ -15,6 +15,12 @@ if [ $1 == 'before' ]; then composer global require "phpunit/phpunit=6.2.*" fi + # Remove Xdebug from PHP runtime for all PHP version except 7.1 to speed up builds. + # We need Xdebug enabled in the PHP 7.1 build job as it is used to generate code coverage. + if [[ ${TRAVIS_PHP_VERSION} != '7.1' ]]; then + phpenv config-rm xdebug.ini + fi + fi if [ $1 == 'after' ]; then