language: php

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

matrix:
  include:
    - php: 5.4
      env:
        - COMPOSER_FLAGS="--prefer-lowest --prefer-stable"
        - COVERAGE=true

before_script:
  - if [[ "$COVERAGE" != true ]]; then phpenv config-rm xdebug.ini; fi

install:
  - travis_retry composer update ${COMPOSER_FLAGS} --prefer-source --no-interaction

after_script:
  - if [[ "$COVERAGE" = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
  - if [[ "$COVERAGE" = true ]]; then 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: 5.4
      env:
        - COMPOSER_FLAGS="--prefer-lowest --prefer-stable"
        - COVERAGE=true

before_script:
  - if [[ "$COVERAGE" != true ]]; then phpenv config-rm xdebug.ini; fi

install:
  - travis_retry composer update ${COMPOSER_FLAGS} --prefer-source --no-interaction

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

Allow failures on HHVM and PHP 7
Allow failures on HHVM and PHP 7
