Enable code coverage in Scrutinizer
This commit is contained in:
parent
7c21e540b0
commit
232a30a1c4
|
|
@ -0,0 +1,16 @@
|
|||
filter:
|
||||
excluded_paths: [ 'vendor/*', 'tests/*', 'samples/*', 'src/PhpWord/Shared/PCLZip/*' ]
|
||||
|
||||
before_commands:
|
||||
- "composer install --prefer-source --dev"
|
||||
|
||||
tools:
|
||||
external_code_coverage:
|
||||
enabled: true
|
||||
timeout: 900
|
||||
php_code_coverage:
|
||||
enabled: false
|
||||
test_command: phpunit -c phpunit.xml.dist
|
||||
php_sim: true
|
||||
php_pdepend: true
|
||||
php_analyzer: true
|
||||
|
|
@ -48,3 +48,8 @@ script:
|
|||
#- php phploc.phar src/
|
||||
## PHPUnit
|
||||
- phpunit -c ./ --coverage-text
|
||||
|
||||
after_script:
|
||||
## Scrutinizer
|
||||
- wget https://scrutinizer-ci.com/ocular.phar
|
||||
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
|
||||
|
|
|
|||
|
|
@ -21,4 +21,7 @@
|
|||
</exclude>
|
||||
</whitelist>
|
||||
</filter>
|
||||
<logging>
|
||||
<log type="coverage-clover" target="./build/logs/clover.xml" />
|
||||
</logging>
|
||||
</phpunit>
|
||||
Loading…
Reference in New Issue