-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scrutinizer.yml
76 lines (67 loc) · 2.29 KB
/
.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
filter:
excluded_paths:
- bin/*
- vendor/*
- tests/*
- config/*
- docs/*
- public/*
- tests/bootstrap.php
dependency_paths:
- vendor/*
build_failure_conditions:
- 'patches.label("Spacing").new.count > 1' # More than 1 new spacing patch
- 'issues.label("coding-style").exists' # No coding style issues allowed
- 'issues.label("coding-style").new.exists' # No new coding style issues allowed
- 'issues.label("coding-style").new.count > 1' # More than 1 new coding style issues.
- 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity
- 'project.metric("scrutinizer.quality", < 9)' # Code Quality Rating drops below 9
# Code Coverage decreased from previous inspection by more than 1%
- 'project.metric_change("scrutinizer.test_coverage", < -0.1)'
build:
services:
#mariadb: 10.1.40
environment:
hosts:
cake3.world-architects.com: '127.0.0.1'
redis: true
node: 10.16.0
php:
version: '7.4'
ini:
phar.readonly: 'Off'
#elasticsearch: '6'
nodes:
tests-php73:
environment:
php:
version: '7.3'
ini:
phar.readonly: 'Off'
tests:
override:
- sh ./config/ci-setup.sh
-
command: './bin/phpunit --coverage-clover=coverage.xml --bootstrap ./tests/bootstrap.php'
coverage:
file: 'coverage.xml'
format: 'php-clover'
tests-php74:
environment:
php:
version: '7.4'
ini:
phar.readonly: 'Off'
tests:
override:
- sh ./config/ci-setup.sh
-
command: './bin/phpunit --coverage-clover=coverage.xml --bootstrap ./tests/bootstrap.php'
coverage:
file: 'coverage.xml'
format: 'php-clover'
analysis:
tests:
override:
- php-scrutinizer-run --enable-security-analysis
- phpcs-run --standard=./phpcs.xml ./src