Repository Config
build:
environment:
php:
version: 7.1
tests:
override:
- cp phpunit.xml.dist phpunit.xml
-
command: './vendor/bin/phpunit --coverage-clover=test-coverage.xml'
coverage:
file: 'test-coverage.xml'
format: 'clover'
tools:
php_code_sniffer:
config:
standard: "PSR2"
checks:
javascript: true
php:
code_rating: true
duplication: true
build_failure_conditions:
- 'project.metric_change("scrutinizer.test_coverage", < 0)'
- 'classes.rating(<= B).new.exists'
- 'operations.rating(<= B).new.exists'
filter:
excluded_paths:
- "bin/"
- "config/"
- "scripts/"
- "public/"
- "tests/"
- "var/"