language: php

dist: bionic

cache:
  directories:
  - $HOME/.composer
  - vendor

git:
  depth: 5

php:
- 7.2
- 7.3
- 7.4
- nightly

env:
  matrix:
  - COMPOSER_FLAGS="--prefer-lowest"
  - COMPOSER_FLAGS=""

matrix:
  fast_finish: true
  allow_failures:
  - php: nightly

before_install:
- travis_retry composer self-update --no-interaction

install:
- travis_retry composer update --no-interaction --no-progress --no-suggest --prefer-dist $COMPOSER_FLAGS

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

after_success:
- bash <(curl -s https://codecov.io/bash)

language: php

dist: bionic

cache:
  directories:
  - $HOME/.composer
  - vendor

git:
  depth: 5

php:
- 7.3
- 7.4
- nightly

env:
  matrix:
  - COMPOSER_FLAGS="--prefer-lowest"
  - COMPOSER_FLAGS=""

matrix:
  fast_finish: true
  allow_failures:
  - php: nightly

before_install:
- travis_retry composer self-update --no-interaction

install:
- travis_retry composer update --no-interaction --no-progress --no-suggest --prefer-dist $COMPOSER_FLAGS

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

after_success:
- bash <(curl -s https://codecov.io/bash)

Remove builds using PHP 7.2
Remove builds using PHP 7.2
