---
language: php
sudo: false
matrix:
  include:
    - php: 5.6
    - php: hhvm
    - php: 7.0
  allow_failures:
    # HHVM will be abandoned so let's not have it break builds
    - php: hhvm
  fast_finish: true

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

before_install:
# Remove xdebug as per https://getcomposer.org/doc/articles/troubleshooting.md#xdebug-impact-on-composer
  - if [ "$TRAVIS_PHP_VERSION" != 'hhvm' ]; then phpenv config-rm xdebug.ini; fi

install:
  - composer install --prefer-dist

script:
  - bin/test
...

---
language: php
sudo: false
matrix:
  include:
    - php: 5.6
    - php: 7.0
    - php: 7.1
    - php: 7.2
  allow_failures:
    # HHVM will be abandoned so let's not have it break builds
    - php: hhvm
  fast_finish: true

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

before_install:
# Remove xdebug as per https://getcomposer.org/doc/articles/troubleshooting.md#xdebug-impact-on-composer
  - if [ "$TRAVIS_PHP_VERSION" != 'hhvm' ]; then phpenv config-rm xdebug.ini; fi

install:
  - composer install --prefer-dist

script:
  - bin/test
...

Remove hhvm support as unnecessary
Remove hhvm support as unnecessary
