Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 6cf1c04

Browse files
create clover.xml in travis and push to scrutinizer
1 parent 926b0e2 commit 6cf1c04

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

.scrutinizer.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
filter:
2+
paths: [lib/*]
3+
excluded_paths: [vendor/*, tests/*]
4+
before_commands:
5+
- 'composer install --dev --prefer-source'
6+
tools:
7+
external_code_coverage: true
8+
php_mess_detector: true
9+
php_code_sniffer: true
10+
sensiolabs_security_checker: true
11+
php_code_coverage: true
12+
php_pdepend: true
13+
php_loc:
14+
enabled: true
15+
excluded_dirs: [vendor, tests]
16+
php_cpd:
17+
enabled: true
18+
excluded_dirs: [vendor, tests]

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,8 @@ install:
3333
- composer install
3434

3535
script:
36-
- composer test:all
36+
- composer test:all
37+
38+
after_script:
39+
- wget https://scrutinizer-ci.com/ocular.phar
40+
- php ocular.phar code-coverage:upload --format=php-clover build/clover.xml

phpunit.xml.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@
1212
<directory suffix=".php">src/</directory>
1313
</whitelist>
1414
</filter>
15+
16+
<logging>
17+
<log type="coverage-clover" target="build/clover.xml" />
18+
</logging>
1519
</phpunit>

0 commit comments

Comments
 (0)