diff --git a/.travis.yml b/.travis.yml index bd1d94e..1144a83 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,20 +1,39 @@ -language: php +cache: + directories: + - $HOME/.composer/cache -php: - - 7.2 - - 7.3 +language: php env: - matrix: - - COMPOSER_FLAGS="--prefer-lowest" - - COMPOSER_FLAGS="" + global: + - COVERAGE=0 + +matrix: + include: + - php: 7.2 + env: LARAVEL='5.8.*' TESTBENCH='3.8.*' COMPOSER_FLAGS='--prefer-lowest' + - php: 7.2 + env: LARAVEL='5.8.*' TESTBENCH='3.8.*' COMPOSER_FLAGS='--prefer-stable' + - php: 7.2 + env: LARAVEL='6.0.*' TESTBENCH='4.0.*' COMPOSER_FLAGS='--prefer-lowest' + - php: 7.2 + env: LARAVEL='6.0.*' TESTBENCH='4.0.*' COMPOSER_FLAGS='--prefer-stable' + - php: 7.3 + env: LARAVEL='5.8.*' TESTBENCH='3.8.*' COMPOSER_FLAGS='--prefer-lowest' + - php: 7.3 + env: LARAVEL='5.8.*' TESTBENCH='3.8.*' COMPOSER_FLAGS='--prefer-stable' + - php: 7.3 + env: LARAVEL='6.0.*' TESTBENCH='4.0.*' COMPOSER_FLAGS='--prefer-lowest' + - php: 7.3 + env: LARAVEL='6.0.*' TESTBENCH='4.0.*' COMPOSER_FLAGS='--prefer-stable' + fast_finish: true before_script: - - travis_retry composer self-update - - travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source + - composer config discard-changes true -script: - - phpunit --coverage-text --coverage-clover=coverage.clover +before_install: + - travis_retry composer self-update + - travis_retry composer require "laravel/framework:${LARAVEL}" "orchestra/testbench:${TESTBENCH}" --no-interaction --no-update -after_script: - - php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover +install: + - travis_retry composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction --no-suggest