Skip to content

Commit

Permalink
Merge pull request #2 from edvakf/coveralls
Browse files Browse the repository at this point in the history
Add coveralls setting
  • Loading branch information
edvakf committed Sep 10, 2015
2 parents a6e3fcf + 3be3db2 commit 2b8c737
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
service_name: travis-ci
src_dir: src
coverage_clover: clover.xml
json_path: coveralls-upload.json
exclude_no_stmt: true
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ install:
- composer install
script:
- ./vendor/bin/phpunit
- if [ "$(php --version | grep 'PHP 5.6')" != "" ]; then ./vendor/bin/coveralls -v; fi
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Convert a PHP array into an Apache Thrift struct type.

[![Build Status](https://travis-ci.org/edvakf/php-thrift-mapper.svg)](https://travis-ci.org/edvakf/php-thrift-mapper)
[![Build Status](https://travis-ci.org/edvakf/php-thrift-mapper.svg)](https://travis-ci.org/edvakf/php-thrift-mapper) [![Coverage Status](https://coveralls.io/repos/edvakf/php-thrift-mapper/badge.svg?branch=coveralls&service=github)](https://coveralls.io/github/edvakf/php-thrift-mapper?branch=coveralls)

## What is this?

Expand Down
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
"apache/thrift": "0.9.2"
},
"require-dev": {
"phpunit/phpunit": "^4.8"
"phpunit/phpunit": "^4.8",
"satooshi/php-coveralls": "dev-master"
},
"suggest": {
"ext-xdebug": "Allows code coverage reporting (pecl install xdebug)"
},
"autoload": {
"psr-4": {
Expand Down
8 changes: 8 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,12 @@
<directory>test/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist addUncoveredFilesFromWhitelist="false">
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-clover" target="clover.xml"/>
</logging>
</phpunit>

0 comments on commit 2b8c737

Please sign in to comment.