Build/Test tools: Explicitly use PHPUnit 5.7 for the PHP 7 builds on Travis.
This avoids fatal errors while the tests remain incompatible with PHPUnit 6, which was recently introduced on Travis. See #39822, #40086 git-svn-id: https://develop.svn.wordpress.org/trunk@40255 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
754dd5c11e
commit
15ae03f4ab
@ -52,6 +52,13 @@ before_install:
|
||||
fi
|
||||
before_script:
|
||||
- stable='^[0-9\.]+$'; if [[ "$TRAVIS_PHP_VERSION" =~ $stable ]]; then phpenv config-rm xdebug.ini; fi
|
||||
- export PATH="$HOME/.composer/vendor/bin:$PATH"
|
||||
- |
|
||||
if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then
|
||||
composer global require "phpunit/phpunit=5.7.*"
|
||||
else
|
||||
composer global require "phpunit/phpunit=4.8.*"
|
||||
fi
|
||||
- npm install -g npm
|
||||
- npm install -g grunt-cli
|
||||
- npm install
|
||||
@ -61,6 +68,7 @@ before_script:
|
||||
- php --version
|
||||
- npm --version
|
||||
- node --version
|
||||
- phpunit --version
|
||||
script: grunt $WP_TRAVISCI
|
||||
notifications:
|
||||
slack:
|
||||
|
Loading…
Reference in New Issue
Block a user