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/*' ]
|
excluded_paths: [ 'vendor/*', 'tests/*', 'samples/*', 'src/PhpWord/Shared/PCLZip/*' ]
|
||||||
|
|
||||||
before_commands:
|
before_commands:
|
||||||
- "composer self-update"
|
|
||||||
- "composer install --prefer-source --dev"
|
- "composer install --prefer-source --dev"
|
||||||
|
|
||||||
tools:
|
tools:
|
||||||
php_code_coverage:
|
external_code_coverage:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
timeout: 700
|
||||||
|
php_code_coverage:
|
||||||
|
enabled: false
|
||||||
test_command: phpunit -c phpunit.xml.dist
|
test_command: phpunit -c phpunit.xml.dist
|
||||||
php_sim: true
|
php_sim: true
|
||||||
php_pdepend: true
|
php_pdepend: true
|
||||||
|
|
|
||||||
|
|
@ -63,3 +63,5 @@ script:
|
||||||
after_script:
|
after_script:
|
||||||
## PHPDocumentor
|
## PHPDocumentor
|
||||||
- bash .travis_shell_after_success.sh
|
- 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>
|
</whitelist>
|
||||||
</filter>
|
</filter>
|
||||||
<logging>
|
<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-html" target="./build/coverage" charset="UTF-8" highlight="true" />
|
||||||
|
<log type="coverage-clover" target="./build/logs/clover.xml" />
|
||||||
</logging>
|
</logging>
|
||||||
</phpunit>
|
</phpunit>
|
||||||
Loading…
Reference in New Issue