-
Notifications
You must be signed in to change notification settings - Fork 19
/
.scrutinizer.yml
48 lines (36 loc) · 1.17 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
#
# Scrutinizer code analysis for PHP.
#
# https://scrutinizer-ci.com/docs/guides/php/
# https://scrutinizer-ci.com/docs/guides/php/continuous-integration-deployment
# https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/
# https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/checks
filter:
# Everything in a root level "test" directory will be excluded
excluded_paths:
- "test/"
# Everything in a root level "vendor" directory will be excluded from analysis
# but treated as a dependency
dependency_paths:
- "vendor/"
before_commands:
- "composer install --dev --prefer-source"
# Use new PHP Analysis Engine.
# https://scrutinizer-ci.com/docs/tools/php/php-analyzer/guides/migrate_to_new_php_analysis
build:
nodes:
analysis:
environment:
php:
version: 8.2
tests:
override:
- php-scrutinizer-run --enable-security-analysis
- phpcs-run --standard=.phpcs.xml
# https://scrutinizer-ci.com/docs/tools/external-code-coverage/
tools:
external_code_coverage:
enabled: true
# Scrutinizer will wait for two code coverage submissions
# in order to cover both PHP7 and PHP8.
runs: 2