language: php

matrix:
  include:
    - php: 5.3
      dist: precise
    - php: 5.4
      dist: trusty
    - php: 5.5
      dist: trusty
    - php: 5.6
      dist: xenial
    - php: 7.0
      dist: xenial
    - php: 7.1
      dist: bionic
    - php: 7.2
      dist: bionic
    - php: 7.3
      dist: bionic
    - php: 7.4
      dist: bionic
    - php: nightly
      dist: bionic
  fast_finish: true

install:
  - if [ "$TRAVIS_PHP_VERSION" != "nightly" ]; then travis_retry composer update; fi
  - if [ "$TRAVIS_PHP_VERSION" == "nightly" ]; then travis_retry composer update --ignore-platform-reqs; fi

script: vendor/bin/phpunit
