language: php

dist: trusty

php:
  - 7.2
  - 7.3
  - 7.4
  - hhvm

sudo: false

install:
  - composer self-update && composer --version
  - composer install --dev --prefer-source

script:
 - vendor/bin/phpunit -v -c $PWD/test/phpunit-travis.xml --coverage-clover=coverage.clover

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

notifications:
  email: false

matrix:
  fast_finish: true
  allow_failures:
    - php: hhvm
