language: php
dist: xenial

matrix:
  fast_finish: true
  include:
    - php: 8.0
    - php: 7.4
    - php: 7.3
    - php: 7.2
    - php: 7.1
    - php: 7.0
    - php: 5.6
    - php: 5.5
      dist: trusty
    - php: 5.4
      dist: trusty

before_install:
  - #sudo apt-get update -qq
  - #sudo apt-get install -y gnupg-agent
  - composer install --prefer-dist

script:
  - vendor/bin/phpunit --coverage-text tests

language: php
dist: xenial

matrix:
  fast_finish: true
  include:
    - php: 8.0
    - php: 7.4
    - php: 7.3
    - php: 7.2
    - php: 7.1
    - php: 7.0
    - php: 5.6
    - php: 5.5
      dist: trusty
    - php: 5.4
      dist: trusty

before_install:
  - #sudo apt-get update -qq
  - #sudo apt-get install -y gnupg-agent
  - if [[ ${TRAVIS_PHP_VERSION:0:1} == "8" ]]; then composer config platform.php 7.4; fi
  - composer install --prefer-dist

script:
  - vendor/bin/phpunit --coverage-text tests

Use phpunit v7 on PHP8
Travis: Use phpunit v7 on PHP8
