Build/Test tools: Don't install PHPUnit on the `travis:js` builds. Saves a couple of minutes of build time.

See #40100


git-svn-id: https://develop.svn.wordpress.org/trunk@40271 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2017-03-10 23:56:07 +00:00
parent 0a1782bb45
commit 5d65051985
1 changed files with 20 additions and 18 deletions

View File

@ -65,24 +65,26 @@ before_script:
fi fi
- | - |
# Install the specified version of PHPUnit depending on the PHP version: # Install the specified version of PHPUnit depending on the PHP version:
case "$TRAVIS_PHP_VERSION" in if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then
7.1|7.0|hhvm|nightly) case "$TRAVIS_PHP_VERSION" in
echo "Using PHPUnit 5.7" 7.1|7.0|hhvm|nightly)
composer global require "phpunit/phpunit=5.7.*" echo "Using PHPUnit 5.7"
;; composer global require "phpunit/phpunit=5.7.*"
5.6|5.5|5.4|5.3) ;;
echo "Using PHPUnit 4.8" 5.6|5.5|5.4|5.3)
composer global require "phpunit/phpunit=4.8.*" echo "Using PHPUnit 4.8"
;; composer global require "phpunit/phpunit=4.8.*"
5.2) ;;
# Do nothing, use default PHPUnit 3.6.x 5.2)
echo "Using default PHPUnit, hopefully 3.6" # Do nothing, use default PHPUnit 3.6.x
;; echo "Using default PHPUnit, hopefully 3.6"
*) ;;
echo "No PHPUnit version handling for PHP version $TRAVIS_PHP_VERSION" *)
exit 1 echo "No PHPUnit version handling for PHP version $TRAVIS_PHP_VERSION"
;; exit 1
esac ;;
esac
fi
- npm --version - npm --version
- node --version - node --version
- nvm install 6.9.1 - nvm install 6.9.1