Merge pull request #17890 from rodrigoprimo/update/remove-xdebug-from-php-5-3-build
Further improve the speed of the Travis build
This commit is contained in:
commit
ee08983e5e
|
@ -6,8 +6,11 @@ if [ $1 == 'before' ]; then
|
|||
# Composer install fails in PHP 5.2
|
||||
[[ ${TRAVIS_PHP_VERSION} == '5.2' ]] && exit;
|
||||
|
||||
# No Xdebug and therefore no coverage in PHP 5.3
|
||||
[[ ${TRAVIS_PHP_VERSION} == '5.3' ]] && exit;
|
||||
# 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 [[ ${RUN_CODE_COVERAGE} != 1 ]]; then
|
||||
phpenv config-rm xdebug.ini
|
||||
fi
|
||||
|
||||
if [[ ${TRAVIS_PHP_VERSION:0:2} == "5." ]]; then
|
||||
composer global require "phpunit/phpunit=4.8.*"
|
||||
|
@ -19,12 +22,6 @@ if [ $1 == 'before' ]; then
|
|||
composer install
|
||||
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 [[ ${RUN_CODE_COVERAGE} != 1 ]]; then
|
||||
phpenv config-rm xdebug.ini
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
if [ $1 == 'after' ]; then
|
||||
|
|
Loading…
Reference in New Issue