language: php

jobs:
  include:
    - php: 7.3
      env: COMPOSER_FLAGS="--prefer-lowest"
    - php: 7.4
    - php: 8.0

before_script:
  - travis_retry composer self-update -q
  - if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
  - travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source

script:
  - vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover;

after_script:
  - php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover

language: php

jobs:
  include:
    - php: 7.3
      env: COMPOSER_FLAGS="--prefer-lowest"
    - php: 7.4
    - php: 8.0
    - php: 8.1

before_script:
  - travis_retry composer self-update -q
  - if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
  - travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source

script:
  - vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover;

after_script:
  - php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover

Add PHP 8.1 to CI
Add PHP 8.1 to CI
