Skip to content

Commit

Permalink
Add Coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
levidurfee committed Aug 10, 2018
1 parent f0b9382 commit a187f4c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ php:
install:
- flags="--ansi --prefer-dist --no-interaction --optimize-autoloader --no-suggest --no-progress"
- composer install $flags
script: phpunit
script: phpunit --coverage-clover clover.xml
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"psr/container": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^7.3"
"phpunit/phpunit": "^7.3",
"php-coveralls/php-coveralls": "^2.1"
},
"provide": {
"psr/container": "1.0.0"
Expand Down
5 changes: 5 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@
<directory suffix="Tests.php">./tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
</whitelist>
</filter>
</phpunit>

0 comments on commit a187f4c

Please sign in to comment.