From acd4872654e3d8bb5166dee44d100138c00e73d5 Mon Sep 17 00:00:00 2001 From: Prasanna Annamalai Date: Thu, 25 Jul 2013 14:13:58 +0530 Subject: [PATCH 1/6] Adding support for coveralls --- .coveralls.yml | 4 ++++ .travis.yml | 7 ++++++- composer.json | 3 ++- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .coveralls.yml diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000..8f1c076 --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1,4 @@ +# .coveralls.yml configuration + +# for php-coveralls +coverage_clover: build/coverage/clover.xml diff --git a/.travis.yml b/.travis.yml index fb3f07e..07a23de 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 notifications: recipients: - DL-PP-Platform-PHP-SDK@ebay.com 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": { From 475640f3c931bc8baeed7834b25d5d5180ccb8a6 Mon Sep 17 00:00:00 2001 From: Prasanna Annamalai Date: Thu, 25 Jul 2013 14:22:59 +0530 Subject: [PATCH 2/6] Adding support for coveralls --- .coveralls.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.coveralls.yml b/.coveralls.yml index 8f1c076..4eaf074 100644 --- a/.coveralls.yml +++ b/.coveralls.yml @@ -1,4 +1,6 @@ # .coveralls.yml configuration # for php-coveralls -coverage_clover: build/coverage/clover.xml +src_dir: lib +coverage_clover: build/logs/clover.xml +json_path: build/logs/coveralls-upload.json \ No newline at end of file From 55befa55cbd2c86635058309fca7008c9e1a22d3 Mon Sep 17 00:00:00 2001 From: Prasanna Annamalai Date: Thu, 25 Jul 2013 14:24:34 +0530 Subject: [PATCH 3/6] Added coveralls support --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 07a23de..91cb229 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,7 @@ before_script: script: - ant coverage after_script: - - php vendor/bin/coveralls -v + - php vendor/bin/coveralls -v -c .coveralls.yml notifications: recipients: - DL-PP-Platform-PHP-SDK@ebay.com From 3e58b6afc342c17a63cf3f857cde5951d37984c0 Mon Sep 17 00:00:00 2001 From: Prasanna Annamalai Date: Thu, 25 Jul 2013 14:30:21 +0530 Subject: [PATCH 4/6] Added coveralls support --- .coveralls.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.coveralls.yml b/.coveralls.yml index 4eaf074..1953492 100644 --- a/.coveralls.yml +++ b/.coveralls.yml @@ -2,5 +2,5 @@ # for php-coveralls src_dir: lib -coverage_clover: build/logs/clover.xml +coverage_clover: build/coverage/clover.xml json_path: build/logs/coveralls-upload.json \ No newline at end of file From 57d8e0de385e17235a1f386206fea69b4152ad11 Mon Sep 17 00:00:00 2001 From: Prasanna Annamalai Date: Thu, 25 Jul 2013 14:37:18 +0530 Subject: [PATCH 5/6] Added support for coveralls --- .coveralls.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.coveralls.yml b/.coveralls.yml index 1953492..90f55b5 100644 --- a/.coveralls.yml +++ b/.coveralls.yml @@ -3,4 +3,4 @@ # for php-coveralls src_dir: lib coverage_clover: build/coverage/clover.xml -json_path: build/logs/coveralls-upload.json \ No newline at end of file +json_path: build/coverage/coveralls-upload.json \ No newline at end of file From f9bba4641e9d3041ef014e133901b01d5c64079c Mon Sep 17 00:00:00 2001 From: Prasanna Annamalai Date: Thu, 25 Jul 2013 15:01:39 +0530 Subject: [PATCH 6/6] Added coveralls support and updates badges for composer --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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