Skip to content

Commit

Permalink
Provide code coverage using coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
duncan3dc committed Nov 29, 2017
1 parent 6468398 commit 85d27b2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
service_name: travis-ci
coverage_clover: clover.xml
json_path: coveralls.json
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ install:
- composer update $COMPOSER_OPTS

script:
- ./vendor/bin/phpunit
- ./tests/lint.sh
- vendor/bin/phpunit --coverage-clover=clover.xml
- tests/lint.sh

after_success:
- vendor/bin/coveralls

git:
depth: 5
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# object-intruder
A small PHP library to access private/protected properties/methods of objects

[![Build Status](https://img.shields.io/travis/duncan3dc/object-intruder.svg)](https://travis-ci.org/duncan3dc/object-intruder)
[![Latest Version](https://img.shields.io/packagist/v/duncan3dc/object-intruder.svg)](https://packagist.org/packages/duncan3dc/object-intruder)
[![Latest Stable Version](https://poser.pugx.org/duncan3dc/object-intruder/version.svg)](https://packagist.org/packages/duncan3dc/object-intruder)
[![Build Status](https://travis-ci.org/duncan3dc/object-intruder.svg?branch=master)](https://travis-ci.org/duncan3dc/object-intruder)
[![Coverage Status](https://coveralls.io/repos/github/duncan3dc/object-intruder/badge.svg)](https://coveralls.io/github/duncan3dc/object-intruder)


## Installation
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"php": "^5.6|^7.0"
},
"require-dev": {
"phpunit/phpunit": "^5.6"
"phpunit/phpunit": "^5.6",
"satooshi/php-coveralls": "^1.0"
},
"autoload": {
"psr-4": {"duncan3dc\\ObjectIntruder\\": "src/"}
Expand Down

0 comments on commit 85d27b2

Please sign in to comment.