Merge pull request #17659 from woocommerce/speed-up-travis-builds

Disable XDebug to speed up Travis builds
This commit is contained in:
Claudio Sanches 2017-11-13 10:14:50 -02:00 committed by GitHub
commit 800877cb79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -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