sudo: false
language: php

php:
    - 5.3
    - 5.4
    - 5.5
    - 5.6
    - hhvm
    - 7

before_install:
    - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then composer require satooshi/php-coveralls:dev-master --no-update; fi;

install:
    - composer update --prefer-source

before_script:
    - mkdir -p build/logs

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

after_script:
    - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php vendor/bin/coveralls -v; fi;
    - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then wget https://scrutinizer-ci.com/ocular.phar -t 3; fi;
    - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi;

sudo: false
language: php

matrix:
    allow_failures:
        - php: 7

php:
    - 5.3
    - 5.4
    - 5.5
    - 5.6
    - hhvm
    - 7

before_install:
    - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then composer require satooshi/php-coveralls:dev-master --no-update; fi;

install:
    - composer update --prefer-source

before_script:
    - mkdir -p build/logs

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

after_script:
    - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php vendor/bin/coveralls -v; fi;
    - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then wget https://scrutinizer-ci.com/ocular.phar -t 3; fi;
    - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi;

Allow PHP7 build to fail
Allow PHP7 build to fail
