Build/Test Tools: Update .travis.yml
to include latest improvements from trunk.
* Explicitly use PHPUnit 5.7 for the PHP 7 builds on Travis. * On Travis CI install and use the node version which is specified in package.json. * Add some more debugging to Travis and bring the format of the Xdebug fix inline with branches. Merge of [40255] and [40257-40259] to the 4.7 branch. Props netweb, johnbillion. See #35105, #39822, #40086. git-svn-id: https://develop.svn.wordpress.org/branches/4.7@40260 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
001cad9cf6
commit
53058fc1b4
21
.travis.yml
21
.travis.yml
@ -52,19 +52,34 @@ before_install:
|
||||
fi
|
||||
before_script:
|
||||
- |
|
||||
stable='^[0-9\.]+$';
|
||||
stable='^[0-9\.]+$'
|
||||
if [[ "$TRAVIS_PHP_VERSION" =~ $stable ]]; then
|
||||
phpenv config-rm xdebug.ini
|
||||
phpenv config-rm xdebug.ini
|
||||
fi
|
||||
- npm install -g npm
|
||||
- export PATH="$HOME/.composer/vendor/bin:$PATH"
|
||||
- |
|
||||
if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then
|
||||
composer global require "phpunit/phpunit=5.7.*"
|
||||
elif [[ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]]; then
|
||||
composer global require "phpunit/phpunit=4.8.*"
|
||||
fi
|
||||
- npm --version
|
||||
- node --version
|
||||
- nvm install 6.9.1
|
||||
- npm install -g grunt-cli
|
||||
- npm install
|
||||
- npm prune
|
||||
- mysql --version
|
||||
- phpenv versions
|
||||
- php --version
|
||||
- php -m
|
||||
- npm --version
|
||||
- node --version
|
||||
- phpunit --version
|
||||
- curl --version
|
||||
- grunt --version
|
||||
- git --version
|
||||
- svn --version
|
||||
script: grunt $WP_TRAVISCI
|
||||
notifications:
|
||||
slack:
|
||||
|
Loading…
Reference in New Issue
Block a user