language: php

php:
  - 5.5
  - 5.6
  - 7.0
  - 7.1
  - 7.2

matrix:
  allow_failures:
  - php: 5.5

install:
  - if [[ "${TRAVIS_PHP_VERSION}" == "5.5" ]]; then composer require phpunit/phpunit:^4.8.36 --prefer-dist --update-with-dependencies; fi
  - if [[ "${TRAVIS_PHP_VERSION}" == "7.2" ]]; then composer require phpunit/phpunit:^6.0 --prefer-dist --update-with-dependencies; fi
  - travis_retry composer install --no-interaction --prefer-source

script:
  - vendor/bin/phpunit --coverage-text --coverage-clover coverage.xml


language: php

php:
  - 7.1
  - 7.2
  - 7.3
  - 7.4snapshot

matrix:
  allow_failures:
  - php: 7.4snapshot

install:
  - travis_retry composer install --no-interaction --prefer-source

script:
  - vendor/bin/phpstan analyse -l max src/ tests/
  - vendor/bin/phpunit --coverage-text --coverage-clover coverage.xml


Remove unsupported PHP versions, run phpstan
Remove unsupported PHP versions, run phpstan
