language: php

php:
  - 8.0
  - 8.1

matrix:
  allow_failures:
    - php: 8.0

before_install:
  - composer self-update

install:
  - composer install --optimize-autoloader --prefer-source --no-interaction

script:
  - php bin/phpunit -c phpunit.xml --color --coverage-clover=build/logs/clover.xml

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover ./build/logs/clover.xml

language: php

php:
  - 8.1

before_install:
  - composer self-update

install:
  - composer install --optimize-autoloader --prefer-source --no-interaction

script:
  - php bin/phpunit -c phpunit.xml --color --coverage-clover=build/logs/clover.xml

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover ./build/logs/clover.xml

Remove PHP 8.0 support becasue deprecated in Symfony 6.1
Remove PHP 8.0 support becasue deprecated in Symfony 6.1
