Skip to content

Commit 6695edc

Browse files
Merge pull request #190 from Nexmo/code-coverage-reporting
Added codecov.io support for code coverage reporting
2 parents 5f8a633 + 79e7210 commit 6695edc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,8 @@ php:
99
before_script:
1010
- composer install
1111

12-
script: ./vendor/bin/phpunit -v --configuration ./phpunit.xml.dist
12+
script:
13+
- ./vendor/bin/phpunit -v --configuration ./phpunit.xml.dist --coverage-clover=coverage.xml
14+
15+
after_success:
16+
- bash <(curl -s https://codecov.io/bash)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Client Library for PHP
33
[![Build Status](https://api.travis-ci.org/Nexmo/nexmo-php.svg?branch=master)](https://travis-ci.org/Nexmo/nexmo-php)
44
[![Latest Stable Version](https://poser.pugx.org/nexmo/client/v/stable)](https://packagist.org/packages/nexmo/client)
55
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE.txt)
6+
[![codecov](https://codecov.io/gh/Nexmo/nexmo-php/branch/master/graph/badge.svg)](https://codecov.io/gh/Nexmo/nexmo-php)
67

78
*This library requires a minimum PHP version of 5.6*
89

0 commit comments

Comments
 (0)