diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000..90f55b5 --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1,6 @@ +# .coveralls.yml configuration + +# for php-coveralls +src_dir: lib +coverage_clover: build/coverage/clover.xml +json_path: build/coverage/coveralls-upload.json \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index fb3f07e..91cb229 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,12 @@ php: - 5.4 - 5.3 before_script: - - composer install + - composer install --dev + - composer update satooshi/php-coveralls --dev +script: + - ant coverage +after_script: + - php vendor/bin/coveralls -v -c .coveralls.yml notifications: recipients: - DL-PP-Platform-PHP-SDK@ebay.com diff --git a/README.md b/README.md index ab01226..2dcdc6d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ -REST API SDK for PHP (V0.7.0) [![Build Status](https://travis-ci.org/paypal/rest-api-sdk-php.png?branch=master)](https://travis-ci.org/paypal/rest-api-sdk-php) -============================== +REST API SDK for PHP +==================== +[![Build Status](https://travis-ci.org/paypal/rest-api-sdk-php.png?branch=master)](https://travis-ci.org/paypal/rest-api-sdk-php) [![Coverage Status](https://coveralls.io/repos/paypal/rest-api-sdk-php/badge.png?branch=master)](https://coveralls.io/r/paypal/rest-api-sdk-php?branch=master) [![Latest Stable Version](https://poser.pugx.org/paypal/rest-api-sdk-php/v/stable.png)](https://packagist.org/packages/paypal/rest-api-sdk-php) [![Total Downloads](https://poser.pugx.org/paypal/rest-api-sdk-php/downloads.png)](https://packagist.org/packages/paypal/rest-api-sdk-php) This repository contains PayPal's PHP SDK and samples for REST API. @@ -64,5 +65,4 @@ More help --------- * [API Reference](https://developer.paypal.com/webapps/developer/docs/api/) - * [Reporting issues / feature requests] (https://github.com/paypal/rest-api-sdk-php/issues) - + * [Reporting issues / feature requests] (https://github.com/paypal/rest-api-sdk-php/issues) \ No newline at end of file diff --git a/composer.json b/composer.json index 4f89af9..20d7592 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,8 @@ "paypal/sdk-core-php": "2.4.*" }, "require-dev": { - "phpunit/phpunit": "3.7.*" + "phpunit/phpunit": "3.7.*", + "satooshi/php-coveralls": "dev-master" }, "autoload": { "psr-0": {