language: php

php:
    - 5.4
    - 5.5
    - 5.6
    - hhvm
    - hhvm-nightly

matrix:
    allow_failures:
        - php: hhvm

before_script:
    - composer self-update
    - composer install --dev

script:
    - sh -c "echo $TRAVIS_PHP_VERSION"
    - phpunit --coverage-clover=coverage.clover

after_script:
  - sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.6' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi"
  - sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.6' ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi"
language: php

php:
    - 5.4
    - 5.5
    - 5.6
    - hhvm
    - hhvm-nightly

before_script:
    - composer self-update
    - composer install --dev

script:
    - sh -c "echo $TRAVIS_PHP_VERSION"
    - phpunit --coverage-clover=coverage.clover

after_script:
  - sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.6' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi"
  - sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.6' ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi"
Remove hhvm from can failure matrix
Remove hhvm from can failure matrix
