Enable code coverage in Scrutinizer

This commit is contained in:
Ivan Lanin 2014-05-06 16:53:15 +07:00
parent 13c178d140
commit 37152cd459
3 changed files with 10 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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>