forked from spotweb/spotweb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.scrutinizer.yml
120 lines (117 loc) · 4.49 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
build:
tests:
override:
- vendor/bin/phpunit
dependencies:
before:
override:
- 'composer update'
- 'composer install --no-interaction --prefer-source --no-scripts --ignore-platform-reqs'
nodes:
php56:
environment:
php:
version: 5.6
tests:
override:
-
command: 'php-scrutinizer-run'
-
command: 'vendor/bin/phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility'
-
command: 'vendor/bin/phpcs --ignore=*/vendor/*,*/js/*,*\.inc* --standard=PHPCompatibility .'
-
command: 'vendor/bin/phpunit --coverage-clover=coverage'
php70:
environment:
php:
version: 7.0
tests:
override:
-
command: 'php-scrutinizer-run'
-
command: 'vendor/bin/phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility'
-
command: 'vendor/bin/phpcs --ignore=*/vendor/*,*/js/*,*\.inc* --standard=PHPCompatibility .'
-
command: 'vendor/bin/phpunit --coverage-clover=coverage'
php71:
environment:
php:
version: 7.1
tests:
override:
-
command: 'php-scrutinizer-run'
-
command: 'vendor/bin/phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility'
-
command: 'vendor/bin/phpcs --ignore=*/vendor/*,*/js/*,*\.inc* --standard=PHPCompatibility .'
-
command: 'vendor/bin/phpunit --coverage-clover=coverage'
php72:
environment:
php:
version: 7.2
tests:
override:
-
command: 'php-scrutinizer-run'
-
command: 'vendor/bin/phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility'
-
command: 'vendor/bin/phpcs --ignore=*/vendor/*,*/js/*,*\.inc* --standard=PHPCompatibility .'
-
command: 'vendor/bin/phpunit --coverage-clover=coverage'
php73:
environment:
php:
version: 7.3
tests:
override:
-
command: 'php-scrutinizer-run'
-
command: 'vendor/bin/phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility'
-
command: 'vendor/bin/phpcs --ignore=*/vendor/*,*/js/*,*\.inc* --standard=PHPCompatibility .'
-
command: 'vendor/bin/phpunit --coverage-clover=coverage'
php74:
environment:
php:
version: 7.4
tests:
override:
-
command: 'php-scrutinizer-run'
-
command: 'vendor/bin/phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility'
-
command: 'vendor/bin/phpcs --ignore=*/vendor/*,*/js/*,*\.inc* --standard=PHPCompatibility .'
-
command: 'vendor/bin/phpunit --coverage-clover=coverage'
filter:
excluded_paths:
- "js/*"
- "vendor/*"
checks:
php:
code_rating: true
remove_extra_empty_lines: true
remove_php_closing_tag: true
remove_trailing_whitespace: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: true
order_alphabetically: true
fix_php_opening_tag: true
fix_linefeed: true
fix_line_ending: true
fix_identation_4spaces: true
fix_doc_comments: true
tools:
php_analyzer: true
php_cs_fixer: true