language: php

sudo: false

php:
  - 5.6
  - 5.5
  - 5.4
  - 7.0
  - hhvm

cache:
  directories:
    - $HOME/.composer/cache

install:
  - composer install --prefer-dist --no-interaction

before_script:
  - mkdir -p build/logs

script:
  - ./bin/phpunit --verbose --coverage-clover build/logs/clover.xml

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar -t 3
  - php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
