mirror of
https://github.com/filp/whoops.git
synced 2026-08-31 12:38:10 +00:00
Send code coverage to scrutinizer
This commit is contained in:
+5
-1
@@ -16,4 +16,8 @@ before_script:
|
||||
- composer install --no-interaction --prefer-source --dev
|
||||
|
||||
script:
|
||||
- phpunit --verbose
|
||||
- phpunit --verbose --coverage-clover build/logs/clover.xml
|
||||
|
||||
after_success:
|
||||
- bash -c 'if [ "$TRAVIS_PHP_VERSION" == "5.5" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi;'
|
||||
- bash -c 'if [ "$TRAVIS_PHP_VERSION" == "5.5" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi;'
|
||||
|
||||
+7
-1
@@ -8,8 +8,14 @@
|
||||
</testsuites>
|
||||
|
||||
<filter>
|
||||
<whitelist>
|
||||
<whitelist addUncoveredFilesFromWhitelist="true">
|
||||
<directory suffix=".php">src/Whoops/</directory>
|
||||
<exclude>
|
||||
<directory>./docs</directory>
|
||||
<directory>./examples</directory>
|
||||
<directory>./tests</directory>
|
||||
<directory>./vendor</directory>
|
||||
</exclude>
|
||||
</whitelist>
|
||||
</filter>
|
||||
</phpunit>
|
||||
|
||||
Reference in New Issue
Block a user