language: php

matrix:
  include:
    - php: 5.4
      env: 
        - DEPENDENCIES='low'
    - php: 5.5
    - php: 5.6
    - php: 7.0
    - php: hhvm

sudo: false

before_script:
  - composer self-update
  - if [ "$DEPENDENCIES" != "low" ]; then composer update; fi;
  - if [ "$DEPENDENCIES" == "low" ]; then composer update --prefer-lowest; fi;

script: bin/phpunit

notifications:
  irc: "irc.freenode.org#fsi-open"

language: php

matrix:
  include:
    - php: 5.4
      env:
        - COMPOSER_FLAGS='--prefer-lowest'
    - php: 5.5
    - php: 5.6
    - php: 7.0
    - php: 7.1

sudo: false

before_script:
  - composer update $COMPOSER_FLAGS

script: bin/phpunit

notifications:
  irc: "irc.freenode.org#fsi-open"

Drop HHVM from Travis matrix, replace it with PHP 7.1
Drop HHVM from Travis matrix, replace it with PHP 7.1