language: php

matrix:
  include:
    - php: 7.2
    - php: 7.3
    - php: 7.4
    - php: 7.2
      env: COMPOSER_FLAGS="--prefer-lowest"
  allow_failures:
    - php: nightly

before_script:
  - travis_retry composer self-update --no-progress
  - travis_retry composer update --no-interaction --no-progress $COMPOSER_FLAGS
  - travis_retry phpenv rehash
  - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.4" ]]; then bin/install-infection; fi;

script:
  - ./vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
  - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.4" ]]; then ./infection.phar --min-msi=60 --threads=4; fi;

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover

language: php

matrix:
  include:
    - php: 7.2
    - php: 7.3
    - php: 7.4
    - php: 8.0
    - php: 7.2
      env: COMPOSER_FLAGS="--prefer-lowest"
  allow_failures:
    - php: nightly

before_script:
  - travis_retry composer self-update --no-progress
  - travis_retry composer update --no-interaction --no-progress $COMPOSER_FLAGS
  - travis_retry phpenv rehash
  - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.4" ]]; then bin/install-infection; fi;

script:
  - ./vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
  - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.4" ]]; then ./infection.phar --min-msi=60 --threads=4; fi;

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover

Add PHP 8.0 to Travis
Add PHP 8.0 to Travis