language: php

php:
 - 7.1
 - 7.2
 - 7.3
 - 7.4

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

script:
  - XDEBUG_MODE=coverage vendor/bin/phpunit

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