-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.scrutinizer.yml
86 lines (80 loc) · 2.73 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
77
78
79
80
81
82
83
84
85
86
inherit: true
build:
nodes:
analysis:
project_setup:
override:
- 'true'
before:
# a workaround for https://github.com/sebastianbergmann/phpunit/issues/1976
- stty cols 80
- curl -Ls http://get.sensiolabs.de/deptrac.phar > deptrac && chmod +x deptrac
override:
- composer install
after:
- php bin/console cache:warmup
tests:
override:
- php-scrutinizer-run
-
command: phpcs-run
use_website_config: true
environment:
hosts:
report.awin: '127.0.0.1'
apache2:
modules: ['rewrite']
sites:
awin_report_ms:
web_root: 'web/'
host: 'report.awin'
php:
version: '7.2'
elasticsearch: false
rabbitmq: false
redis: false
postgresql: false
variables:
APP_ENV: test
tests: true
cache:
directories:
- ~/.composer/
dependencies:
before:
- sudo apt-get install -y --force-yes graphviz
tests:
override:
-
command: './vendor/bin/phpunit --testsuite="unit" --coverage-clover=var/code-coverage/phpcov-unit.xml --printer PHPUnit\\TextUI\\ResultPrinter'
coverage:
file: 'var/code-coverage/phpcov-unit.xml'
format: 'php-clover'
-
command: './vendor/bin/phpunit --testsuite="integration" --coverage-clover=var/code-coverage/phpcov-integration.xml --printer PHPUnit\\TextUI\\ResultPrinter'
coverage:
file: 'var/code-coverage/phpcov-integration.xml'
format: 'php-clover'
-
command: 'php ./deptrac.phar analyze depfile.yml --formatter-graphviz-dump-image=/home/scrutinizer/artifacts/dependencies.png'
filter:
excluded_paths:
- 'app/*'
- 'bin/*'
- 'features/*'
- 'tests/*'
- 'var/*'
- 'vendor/*'
build_failure_conditions:
- 'elements.rating(<= B).new.exists'
- 'issues.label("coding-style").new.exists'
- 'issues.severity(>= MAJOR).new.exists'
checks:
php: true
coding_style:
php:
spaces:
around_operators:
concatenation: true
other:
after_type_cast: false