language: php

php:
    - 5.4
    - 5.5
    - 5.6
    - 7.0
    - hhvm

matrix:
    fast_finish: true
    include:
        - php: 5.4
          env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest"

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

script:
  - find src -name "*.php" -print0 | xargs -0 -n1 -P8 php -l
  - test/build.sh

language: php

php:
  - 5.4
  - 5.5
  - 5.6
  - 7.0
  - hhvm
  - nightly

matrix:
  fast_finish: true
  include:
    - php: 5.4
      env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest"

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

script:
  - find src -name "*.php" -print0 | xargs -0 -n1 -P8 php -l
  - test/build.sh

Test against the nightly build of php
Test against the nightly build of php

This means when the new version (7.1) is release (soon), we can have
confidence that the build will work
