Try in sh file so 5.2 does not break
This commit is contained in:
parent
0aad398144
commit
cbe6934f61
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue