language: php
dist: trusty
php:
    - 5.4
    - 5.5
    - 5.6
    - 7.0
    - 7.1
    - hhvm
        - before_script:
            - curl -sSfL -o ~/.phpenv/versions/hhvm/bin/phpunit https://phar.phpunit.de/phpunit-5.7.phar
    - hhvm-nightly
        - before_script:
            - curl -sSfL -o ~/.phpenv/versions/hhvm/bin/phpunit https://phar.phpunit.de/phpunit-5.7.phar

matrix:
    include:
        - php: 5.3
          dist: precise

script: phpunit --verbose

language: php
dist: trusty
php:
    - 5.4
    - 5.5
    - 5.6
    - 7.0
    - 7.1
    - hhvm
    - hhvm-nightly

matrix:
    include:
        - php: 5.3
          dist: precise

before_script:
    - if [[ "$TRAVIS_PHP_VERSION" == "hhvm"* ]]; then
          # Use PHPUnit 5.7 for HHVM due to compatability issues between HHVM and PHP7
          echo "Detected HHVM, installing PHPUnit 5.7..."
          curl -sSfL -o ~/.phpenv/versions/hhvm/bin/phpunit https://phar.phpunit.de/phpunit-5.7.phar
      fi

script: phpunit --verbose

Fix before script to properly install PHPUnit 5.7 for HHVM
Fix before script to properly install PHPUnit 5.7 for HHVM
