dist: trusty

language: php

matrix:
  allow_failures:
    - php: nightly
  include:
    - php: 5.3
    - php: 5.4
    - php: 5.5
    - php: 5.6
    - php: 7.0
    - php: 7.1
    - php: hhvm
    - php: hhvm-nightly
    - php: nightly

before_script:
  - bash tests/before_script.sh

script:
  - bash tests/script.sh

language: php

matrix:
  allow_failures:
    - php: nightly
  include:
    - php: 5.3
      dist: precise
    - php: 5.4
      dist: trusty
    - php: 5.5
      dist: trusty
    - php: 5.6
      dist: trusty
    - php: 7.0
      dist: trusty
    - php: 7.1
      dist: trusty
    - php: hhvm
      dist: trusty
    - php: hhvm-nightly
      dist: trusty
    - php: nightly
      dist: trusty

before_script:
  - bash tests/before_script.sh

script:
  - bash tests/script.sh

Use Trusty for all builds except PHP 5.3
Use Trusty for all builds except PHP 5.3

PHP 5.2 and PHP 5.3 are not supported on Travis CI:
"If you need PHP 5.2 or 5.3, please use Precise."
