language: php

php:
  - 5.4
  - 5.5
  - 5.6
  - hhvm

matrix:
  include:
    - php: 7.0
      env: PHPUNIT_FLAGS="--coverage-clover coverage.clover" CHECK_CS=true

before_script:
  - composer self-update
  - composer install --no-interaction --prefer-source

script:
  - phpunit $PHPUNIT_FLAGS
  - if [[ "$CHECK_CS" != "" ]]; then vendor/bin/symplify-cs check src tests; fi

after_script:
  - if [[ "$PHPUNIT_FLAGS" != "" ]]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

language: php

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

matrix:
  allow_failures:
    - php: 7.0
    - php: hhvm
  include:
    - php: 7.0
      env: PHPUNIT_FLAGS="--coverage-clover coverage.clover" CHECK_CS=true

before_script:
  - composer self-update
  - composer install --no-interaction --prefer-source

script:
  - phpunit $PHPUNIT_FLAGS
  - if [[ "$CHECK_CS" != "" ]]; then vendor/bin/symplify-cs check src tests; fi

after_script:
  - if [[ "$PHPUNIT_FLAGS" != "" ]]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

Allow failure on PHP 7 and HHVM, add PHP 7
Allow failure on PHP 7 and HHVM, add PHP 7