Try in sh file so 5.2 does not break

This commit is contained in:
Mike Jolley 2017-03-14 17:17:35 +00:00
parent 0aad398144
commit cbe6934f61
2 changed files with 6 additions and 6 deletions

View File

@ -22,12 +22,6 @@ matrix:
before_script:
- 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
- bash tests/bin/install.sh woocommerce_test root '' localhost $WP_VERSION
- bash tests/bin/travis.sh before

View File

@ -9,6 +9,12 @@ if [ $1 == 'before' ]; then
# No Xdebug and therefore no coverage in PHP 5.3
[[ ${TRAVIS_PHP_VERSION} == '5.3' ]] && exit;
if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then
composer global require "phpunit/phpunit=5.7.*"
else
composer global require "phpunit/phpunit=4.8.*"
fi
composer self-update
composer install --no-interaction