language: php
sudo: false

php:
  - 7.2
  - 7.3
  - 7.4

before_script:
  - composer install --dev
  - ./vendor/bin/phpunit --coverage-clover=coverage.clover
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover

script: ./vendor/bin/phpunit
