-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scrutinizer.yml
26 lines (26 loc) · 1002 Bytes
/
.scrutinizer.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
build:
environment:
php:
version: 7.2
nodes:
analysis:
tests:
override:
- php-scrutinizer-run
-
command: 'vendor/bin/phpunit --coverage-clover=coverage-file'
coverage:
file: 'coverage-file'
format: 'clover'
tests: true
filter:
excluded_paths:
- 'tests/*'
checks:
php: true
build_failure_conditions:
- 'elements.rating(<= D).exists' # No classes/methods with a rating of D or worse
- 'elements.rating(<= B).new.exists' # No new classes/methods with a rating of B or worse
- 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity
- 'project.metric("scrutinizer.quality", < 9.5)' # Code Quality Rating drops below 9.5
- 'project.metric_change("scrutinizer.test_coverage", < -0.001)' # Code Coverage decreased from previous inspection less than 0.1%