language: php

php:
  - 7.2
  - 7.3
  - 7.4

branches:
  except:
    - 5.x

install:
  - travis_retry composer install --no-interaction --prefer-source

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

after_success:
  - bash <(curl -s https://codecov.io/bash)
