language: php

matrix:
    include:
        - php: 7.0
        - php: 7.1
        - php: hhvm

cache:
    directories:
        - $HOME/.composer/cache

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

script:
    - phpunit --verbose --coverage-clover build/logs/clover.xml
    - phpenv config-rm xdebug.ini || return 0

after_script:
  - CODECLIMATE_REPO_TOKEN="fea3e138b23e228447da791f4028ff6d7374d6217012718156578ce890036be2" vendor/bin/test-reporter --stdout > codeclimate.json
  - "curl -X POST -d @codeclimate.json -H 'Content-Type: application/json' -H 'User-Agent: Code Climate (PHP Test Reporter v0.1.1)' https://codeclimate.com/test_reports"

addons:
  code_climate:
    repo_token: fea3e138b23e228447da791f4028ff6d7374d6217012718156578ce890036be2

language: php

matrix:
    include:
        - php: 7.0
        - php: 7.1

cache:
    directories:
        - $HOME/.composer/cache

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

script:
    - phpunit --verbose --coverage-clover build/logs/clover.xml
    - phpenv config-rm xdebug.ini || return 0

after_script:
  - CODECLIMATE_REPO_TOKEN="fea3e138b23e228447da791f4028ff6d7374d6217012718156578ce890036be2" vendor/bin/test-reporter --stdout > codeclimate.json
  - "curl -X POST -d @codeclimate.json -H 'Content-Type: application/json' -H 'User-Agent: Code Climate (PHP Test Reporter v0.1.1)' https://codeclimate.com/test_reports"

addons:
  code_climate:
    repo_token: fea3e138b23e228447da791f4028ff6d7374d6217012718156578ce890036be2

Remove support for HHVM as it is not fully compatible with PHP >7.
Remove support for HHVM as it is not fully compatible with PHP >7.
