Build/Test Tools: More PHP 7.2 tweaks for Travis CI.

See #40109


git-svn-id: https://develop.svn.wordpress.org/trunk@41177 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2017-07-27 21:31:40 +00:00
parent 3304df16d8
commit 9f3bcacd71

View File

@ -14,8 +14,8 @@ matrix:
include:
- php: 7.1
env: WP_TRAVISCI=travis:js
- php: 7.1
- php: 7.2
- php: 7.1
- php: 7.0
- php: 5.6
- php: 5.6
@ -48,10 +48,11 @@ before_install:
fi
before_script:
- |
# Remove Xdebug for a huge performance increase, but not from nightly:
stable='^[0-9\.]+$'
if [[ "$TRAVIS_PHP_VERSION" =~ $stable ]]; then
# 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 Composer's global bin dir to PATH, but not on PHP 5.2:
@ -63,7 +64,7 @@ before_script:
# Install the specified version of PHPUnit depending on the PHP version:
if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then
case "$TRAVIS_PHP_VERSION" in
7.1|7.0|nightly)
7.2|7.1|7.0|nightly)
echo "Using PHPUnit 6.1"
composer global require "phpunit/phpunit=6.1.*"
;;