Checkout Config
build:
nodes:
analysis:
environment:
php:
version: 8.1
variables:
XDEBUG_MODE: 'coverage'
tests:
override:
- php-scrutinizer-run
-
command: 'vendor/bin/phpunit --coverage-clover=coverage.clover'
coverage:
file: 'coverage.clover'
format: 'clover'
filter:
paths:
- 'src/*'
excluded_paths:
- 'tests/*'
- 'vendor/*'
checks:
php:
code_rating: true
duplication: true
coding_style:
php:
indentation:
general:
use_tabs: false
size: 4
spaces:
around_operators:
concatenation: true
Repository Config
build:
environment:
php: 8.1
nodes:
analysis:
project_setup:
override:
- 'true'
tests:
override:
- php-scrutinizer-run
tests: true
coverage:
tests:
override:
-
command: 'vendor/bin/phpunit tests --coverage-clover=coverage.clover --configuration phpunit.xml'
checks:
php: true
tools:
php_cs_fixer: true
Global Config
build:
environment:
php: 8.1
nodes:
analysis:
project_setup:
override:
- 'true'
tests:
override:
- php-scrutinizer-run
tests: true
coverage:
tests:
override:
-
command: 'vendor/bin/phpunit tests --coverage-clover=coverage.clover --configuration phpunit.xml'
checks:
php: true
tools:
php_cs_fixer: true