Send code coverage to scrutinizer

This commit is contained in:
Graham Campbell
2014-02-20 11:47:10 +00:00
parent 853137d768
commit 9e2e6ec105
2 changed files with 12 additions and 2 deletions
+5 -1
View File
@@ -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
View File
@@ -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>