-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.scrutinizer.yml
61 lines (58 loc) · 1.88 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
build_failure_conditions:
- 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity
- 'issues.label("coding-style").new.count > 1' # More than 1 new coding style issues.
- 'issues.label("coding-style").exists' # No coding style issues allowed
- 'issues.label("coding-style").new.exists' # No new coding style issues allowed
- '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:
environment:
docker: true
variables:
PDO_TEST_USER: 'root'
PDO_TEST_PASS: ''
PDO_TEST_HOST: '127.0.0.1'
PDO_TEST_DB: 'test'
php:
version: '7.3'
project_setup:
before:
- mysql -e "CREATE DATABASE test CHARSET=utf8 DEFAULT COLLATE utf8_general_ci"
# We need to run eventstore on docker as ubuntu 14.4 is end of live at eventstore
# Scrutinizer does not support newer ubuntu version and tell people to use docker to run newer versions
- docker pull eventstore/eventstore
- docker run -d --name eventstore-node -it -p 2113:2113 -p 1113:1113 eventstore/eventstore
- sleep 10
nodes:
analysis:
project_setup:
override:
- 'true'
tests:
override:
- php-scrutinizer-run --enable-security-analysis
-
command: phpcs-run
use_website_config: false
tests:
tests:
override:
- command: ./bin/phpunit --coverage-clover=coverage.xml
coverage:
file: coverage.xml
format: php-clover
environment:
php:
version: 7.3
filter:
excluded_paths:
- 'tests/*'
- 'bin/*'
checks:
php: true
coding_style:
php:
spaces:
around_operators:
assignment: false