sudo: false
language: php
php:
  - 7.1
  - 7.2
  - 7.3
  - 7.4
before_script:
  - composer self-update
  - composer install
script:
  - php vendor/bin/php-cs-fixer fix --verbose --dry-run --using-cache=no
  - php vendor/bin/phpcs --no-cache --no-colors
  - XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-clover=coverage.clover
  - php vendor/bin/phpstan analyse --no-interaction
  - php vendor/bin/psalm
after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover

sudo: false
language: php
php:
  - 7.1
  - 7.2
  - 7.3
  - 7.4
  - 8.0
before_script:
  - composer self-update
  - composer install
script:
  - php vendor/bin/php-cs-fixer fix --verbose --dry-run --using-cache=no
  - php vendor/bin/phpcs --no-cache --no-colors
  - XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-clover=coverage.clover
  - php vendor/bin/phpstan analyse --no-interaction
  - php vendor/bin/psalm
after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover

Test CI builds with PHP 8
Test CI builds with PHP 8
