Skip to content

Commit 37152cd

Browse files
committed
Enable code coverage in Scrutinizer
1 parent 13c178d commit 37152cd

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.scrutinizer.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ filter:
22
excluded_paths: [ 'vendor/*', 'tests/*', 'samples/*', 'src/PhpWord/Shared/PCLZip/*' ]
33

44
before_commands:
5-
- "composer self-update"
65
- "composer install --prefer-source --dev"
76

87
tools:
9-
php_code_coverage:
8+
external_code_coverage:
109
enabled: true
10+
timeout: 700
11+
php_code_coverage:
12+
enabled: false
1113
test_command: phpunit -c phpunit.xml.dist
1214
php_sim: true
1315
php_pdepend: true

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,5 @@ script:
6363
after_script:
6464
## PHPDocumentor
6565
- bash .travis_shell_after_success.sh
66+
- wget https://scrutinizer-ci.com/ocular.phar
67+
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml

phpunit.xml.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
</whitelist>
2323
</filter>
2424
<logging>
25+
<!--
26+
For http://phpoffice.github.io/PHPWord/coverage/ and Scrutinizer
27+
-->
2528
<log type="coverage-html" target="./build/coverage" charset="UTF-8" highlight="true" />
29+
<log type="coverage-clover" target="./build/logs/clover.xml" />
2630
</logging>
2731
</phpunit>

0 commit comments

Comments
 (0)