language: php
dist: trusty
sudo: false
php:
  - hhvm
  - nightly
  - 7.0
  - 7.1
matrix:
  allow_failures:
    - php: hhvm
    - php: nightly
install: composer install
script: ./vendor/bin/phpunit --coverage-clover=coverage.clover
after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
