From 62623ce6dfa3dbd19d0c9816286a4d0ce0ca0a6a Mon Sep 17 00:00:00 2001 From: Craig Paul Date: Thu, 19 Sep 2019 14:38:44 -0600 Subject: [PATCH] Updates travis config to use a matrix so we can control the version of phpunit being downloaded --- .travis.yml | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3301c73..6bc2ffe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,15 +1,29 @@ language: php -php: - - 5.6 - - 7.0 - - 7.1 +sudo: false + +cache: + directories: + - $HOME/.composer/cache + +matrix: + include: + - php: 5.6 + env: PHPUNIT='5.7.*' + - php: 7.0 + env: PHPUNIT='6.5.*' + - php: 7.1 + env: PHPUNIT='7.5.*' + fast_finish: true before_script: - - composer self-update - - composer install --no-interaction + - composer config discard-changes true -script: phpunit +before_install: + - travis_retry composer self-update + - travis_retry composer require "phpunit/phpunit:${PHPUNIT}" --no-interaction --no-update -matrix: - fast_finish: true \ No newline at end of file +install: + - travis_retry composer install --prefer-dist --no-interaction --no-suggest + +script: phpunit