Skip to content

Commit

Permalink
Add clover to phpunit.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
willwashburn committed May 1, 2016
1 parent 154f5c1 commit 86f97d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ before_script:
- mkdir -p build/logs

script:
- phpunit --coverage-clover clover.xml
- phpunit

after_success:
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php vendor/bin/coveralls --coverage_clover="clover.xml" -v; fi;'
Expand Down
9 changes: 6 additions & 3 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@
stopOnFailure="false"
syntaxCheck="false"
>
<logging>
<log type="coverage-clover" target="clover.xml"/>
</logging>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
</whitelist>
<blacklist>
<directory>./vendor</directory>
</blacklist>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory>./src</directory>
</whitelist>
</filter>
<testsuites>
<testsuite name="Package Test Suite">
Expand Down

0 comments on commit 86f97d5

Please sign in to comment.