forked from DusanKasan/Knapsack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scrutinizer.yml
42 lines (36 loc) · 955 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
build:
environment:
php: '5.6.9'
tests:
override:
-
command: 'vendor/bin/phpspec run -c ci/phpspec-with-coverage.yml -vvv'
coverage:
file: 'coverage.clover'
format: 'php-clover'
-
command: 'vendor/bin/phpunit'
-
command: 'phpenv global 7.0.0 && vendor/bin/phpspec run -vvv'
-
command: 'phpenv global 7.0.0 vendor/bin/phpunit'
tools:
php_code_sniffer:
config:
standard: "PSR2"
sensiolabs_security_checker: true
php_mess_detector:
config:
ruleset: ci/phpmd.xml
checks:
php:
code_rating: true
duplication: true
build_failure_conditions:
- 'issues.label("coding-style").exists'
- 'issues.severity(>= MINOR).exists'
- 'project.metric("scrutinizer.quality", < 7)'
- 'project.metric("scrutinizer.test_coverage", < 0.95)'
filter:
excluded_paths:
- tests/