sudo: false
language: php
php:
  - 7.0
  - 7.1
  - 7.2
install:
  - composer install --no-scripts --no-interaction --prefer-source
script:
  - php vendor/bin/phpunit -c phpunit.xml.dist
after_script:
  - wget -q https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
