diff --git a/.travis.yml b/.travis.yml index 53c9522..0dc4880 100644 --- a/.travis.yml +++ b/.travis.yml @@ -54,13 +54,17 @@ before_script: - export PATH="$HOME/.composer/vendor/bin:$PATH" - | case "$TRAVIS_PHP_VERSION" in - 5.6|5.5|5.4|5.3) - composer global require "phpunit/phpunit:^4" + 5.6|5.5|5.4|5.3|5.2) + composer global require consolidation/cgr + PATH="$(composer config -g home)/vendor/bin:$PATH" + cgr "phpunit/phpunit:^4" ;; 5.2) - ;; + ;; *) - composer global require "phpunit/phpunit:6" + composer global require consolidation/cgr + PATH="$(composer config -g home)/vendor/bin:$PATH" + cgr "phpunit/phpunit:^6" ;; esac - |