default phpunit 6

This commit is contained in:
Matthias Pfefferle 2020-09-21 13:43:33 +02:00
parent 302331ef5c
commit 7ae5915844

View file

@ -45,17 +45,13 @@ before_script:
# Install the specified version of PHPUnit depending on the PHP version: # Install the specified version of PHPUnit depending on the PHP version:
if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then
case "$TRAVIS_PHP_VERSION" in case "$TRAVIS_PHP_VERSION" in
8|7.4|7.3|7.2|7.1|7.0|nightly)
echo "Using PHPUnit 6.x"
composer global require "phpunit/phpunit:^6"
;;
5.6) 5.6)
echo "Using PHPUnit 5.x" echo "Using PHPUnit 5.x"
composer global require "phpunit/phpunit:^5" composer global require "phpunit/phpunit:^5"
;; ;;
*) *)
echo "No PHPUnit version handling for PHP version $TRAVIS_PHP_VERSION" echo "Using PHPUnit 6.x"
exit 1 composer global require "phpunit/phpunit:^6"
;; ;;
esac esac
fi fi