Skip to content

Commit

Permalink
Add code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Hall committed Mar 20, 2018
1 parent 52a15b9 commit 341a845
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
coverage_clover: tests/Logs/clover.xml
json_path: tests/Logs/coveralls-upload.json
service_name: travis-ci
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ php:
- '7.1'
- 'hhvm'
install:
- composer update
- composer update
script:
- ./vendor/bin/phpunit --coverage-clover ./tests/Logs/clover.xml
after_script:
- php vendor/bin/php-coveralls -v
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# PSR-6 adapter for RW File Cache

[![Build Status](https://travis-ci.org/rapidwebltd/RW-File-Cache-PSR-6.svg?branch=master)](https://travis-ci.org/rapidwebltd/RW-File-Cache-PSR-6)
[![Coverage Status](https://coveralls.io/repos/github/rapidwebltd/RW-File-Cache-PSR-6/badge.svg?branch=master)](https://coveralls.io/github/rapidwebltd/RW-File-Cache-PSR-6?branch=master)

This package provides a [PSR-6](http://www.php-fig.org/psr/psr-6/) adapter for [RW File Cache](https://github.com/rapidwebltd/RW-File-Cache).
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
},
"require-dev": {
"cache/integration-tests": "^0.16.0",
"phpunit/phpunit": "^5.7"
"phpunit/phpunit": "^5.7",
"satooshi/php-coveralls": "^2.0"
},
"autoload": {
"psr-4": {
Expand Down
7 changes: 6 additions & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@
</testsuite>
</testsuites>
<filter>

<whitelist>
<directory suffix=".php">src</directory>
<exclude>
<directory suffix=".php">src/Examples</directory>
</exclude>
</whitelist>
</filter>
<php>

Expand Down

0 comments on commit 341a845

Please sign in to comment.