sudo: false
language: php
dist: trusty
php:
  - 5.6
  - 7
  - 7.1
script:
  - composer install
  - ./vendor/bin/phpunit --coverage-clover=coverage.clover
after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover

sudo: false
language: php
dist: trusty
php:
  - 5.6
  - 7
  - 7.1
  - 7.2
  - 7.3
  - 7.4
script:
  - composer install
  - ./vendor/bin/phpunit --coverage-clover=coverage.clover
after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover

Test newer PHP versions on CI
Test newer PHP versions on CI