Checkout Config
# .scrutinizer.yml
build:
environment:
php:
version: 8.1
tests:
override:
-
command: 'XDEBUG_MODE=coverage vendor/bin/phpunit --bootstrap test/bootstrap.php -c test/phpunit.xml.dist'
coverage:
file: 'tmp/coverage-clover.xml'
format: 'clover'
Repository Config
build:
environment:
variables:
AKISMET_API_KEY: '359ee33b40e0'
nodes:
analysis:
dependencies:
after:
- composer require --dev "squizlabs/php_codesniffer=3.11.3"
project_setup:
override:
- 'true'
tests:
override:
- php-scrutinizer-run
-
command: phpcs-run
use_website_config: true
environment:
node:
version: 6.0.0
tests: true
filter:
excluded_paths:
- 'test/*'
checks:
php: true
coding_style:
php:
indentation:
general:
use_tabs: true
spaces:
around_operators:
concatenation: true
within:
brackets: true