-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy path.scrutinizer.yml
48 lines (40 loc) · 1.11 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
inherit: true
checks:
php:
code_rating: true
duplication: true
tools:
php_code_coverage:
test_command: vendor/bin/phpunit -c tests/phpunit.xml tests/GeoTimeZone/CalculatorTest.php
php_code_sniffer:
enabled: true
config:
standard: PSR1 # Built-in standards: PEAR, PHPCS, PSR1, PSR2, Squiz, Zend
php_cpd:
min_lines: 5
min_tokens: 70
enabled: true
php_cs_fixer:
enabled: true
config:
level: psr1 # Allowed Values: "psr0", "psr1", "psr2", "all"
php_loc:
command: phploc
enabled: true
php_mess_detector:
enabled: true
config:
rulesets:
- codesize
build:
tests:
override:
-
wget https://s3-eu-west-1.amazonaws.com/geo-timezone/data_20170926.zip -P ./build/
-
unzip ./build/data_20170926.zip
-
command: 'vendor/bin/phpunit -c tests/phpunit.xml --coverage-clover=coverageFile tests/GeoTimeZone/CalculatorTest.php'
coverage:
file: 'coverageFile'
format: 'php-clover'