Enable code coverage in Scrutinizer
This commit is contained in:
parent
13c178d140
commit
37152cd459
|
|
@ -2,12 +2,14 @@ filter:
|
|||
excluded_paths: [ 'vendor/*', 'tests/*', 'samples/*', 'src/PhpWord/Shared/PCLZip/*' ]
|
||||
|
||||
before_commands:
|
||||
- "composer self-update"
|
||||
- "composer install --prefer-source --dev"
|
||||
|
||||
tools:
|
||||
php_code_coverage:
|
||||
external_code_coverage:
|
||||
enabled: true
|
||||
timeout: 700
|
||||
php_code_coverage:
|
||||
enabled: false
|
||||
test_command: phpunit -c phpunit.xml.dist
|
||||
php_sim: true
|
||||
php_pdepend: true
|
||||
|
|
|
|||
|
|
@ -63,3 +63,5 @@ script:
|
|||
after_script:
|
||||
## PHPDocumentor
|
||||
- bash .travis_shell_after_success.sh
|
||||
- wget https://scrutinizer-ci.com/ocular.phar
|
||||
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
|
||||
|
|
|
|||
|
|
@ -22,6 +22,10 @@
|
|||
</whitelist>
|
||||
</filter>
|
||||
<logging>
|
||||
<!--
|
||||
For http://phpoffice.github.io/PHPWord/coverage/ and Scrutinizer
|
||||
-->
|
||||
<log type="coverage-html" target="./build/coverage" charset="UTF-8" highlight="true" />
|
||||
<log type="coverage-clover" target="./build/logs/clover.xml" />
|
||||
</logging>
|
||||
</phpunit>
|
||||
Loading…
Reference in New Issue