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 curl -sSfL -o ~/.phpenv/versions/hhvm/bin/phpunit https://phar.phpunit.de/phpunit-5.7.phar; fi

script: phpunit --verbose

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

matrix:
    allow_failures:
        - hhvm
        - hhvm-nightly
    include:
        - php: 5.3
          dist: precise

before_script:
    - if [[ "$TRAVIS_PHP_VERSION" == "hhvm"* ]]; then curl -sSfL -o ~/.phpenv/versions/hhvm/bin/phpunit https://phar.phpunit.de/phpunit-5.7.phar; fi

script: phpunit --verbose

Allow HHVM builds to fail for now. One of PHPUnit's dependencies uses reserved keywords as class names, which HHVM does not like...
Allow HHVM builds to fail for now. One of PHPUnit's dependencies uses reserved keywords as class names, which HHVM does not like...
