language: php
php:
  - 5.4
  - 5.5
  - 5.6
  - hhvm

matrix:
  allow_failures:
    - php: hhvm
  
install:
  - composer self-update && composer --version
  - composer install --prefer-dist --dev
  - wget https://scrutinizer-ci.com/ocular.phar
  
script:
  - vendor/bin/phpunit --verbose --coverage-clover=coverage.clover --configuration="phpunit.xml"
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover

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

matrix:
  allow_failures:
    - php: hhvm
    - php: 7.0
  
install:
  - composer self-update && composer --version
  - composer install --prefer-dist --dev
  - wget https://scrutinizer-ci.com/ocular.phar
  
script:
  - vendor/bin/phpunit --verbose --coverage-clover=coverage.clover --configuration="phpunit.xml"
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover

Allow failures for PHP 7
Allow failures for PHP 7