From f9eaf7580c9115afac26c309d8c5f6a46021ac9e Mon Sep 17 00:00:00 2001 From: Joao Machado Date: Thu, 12 Nov 2015 20:19:46 +0000 Subject: [PATCH 1/4] Remove travis.yml --- .travis.yml | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5a40632..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: php -php: - - 5.3 - - 5.4 - - 5.5 - - 5.6 - - hhvm - -before_script: - - curl -s http://getcomposer.org/installer | php - - php composer.phar install -n - -script: - - php vendor/bin/phpunit - -after_script: - - php bin/codacycoverage clover From 51ea39c87abeafa0d200e1d0c58865ecd2660c4f Mon Sep 17 00:00:00 2001 From: Joao Machado Date: Thu, 12 Nov 2015 20:20:36 +0000 Subject: [PATCH 2/4] Add circle.yml --- circle.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 circle.yml diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000..9f08c67 --- /dev/null +++ b/circle.yml @@ -0,0 +1,13 @@ +machine: + php: + version: 5.3.10 + +dependencies: + pre: + - curl -s http://getcomposer.org/installer | php + - php composer.phar install -n + +test: + post: + - php vendor/bin/phpunit + - php bin/codacycoverage clover From c5c016f5723a1f1a19f4ae5b3c3f7894b95bfc83 Mon Sep 17 00:00:00 2001 From: Joao Machado Date: Thu, 12 Nov 2015 20:20:51 +0000 Subject: [PATCH 3/4] Update README and badges --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2dfd3fe..1ca797c 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,11 @@ +[![Codacy Badge](https://api.codacy.com/project/badge/grade/d992a862b1994805907ec277e16b0fda)](https://www.codacy.com/app/Codacy/php-codacy-coverage) +[![Codacy Badge](https://api.codacy.com/project/badge/coverage/d992a862b1994805907ec277e16b0fda)](https://www.codacy.com/app/Codacy/php-codacy-coverage) +[![Circle CI](https://circleci.com/gh/codacy/php-codacy-coverage.svg?style=shield&circle-token=:circle-token)](https://circleci.com/gh/codacy/php-codacy-coverage) +[![Latest Stable Version](https://poser.pugx.org/codacy/coverage/version)](https://packagist.org/packages/codacy/coverage) + # Codacy PHP Coverage Reporter [Codacy](https://codacy.com/) coverage support for PHP. Get coverage reporting and code analysis for PHP from Codacy. -[![Codacy Badge](https://www.codacy.com/project/badge/d992a862b1994805907ec277e16b0fda)](https://www.codacy.com/public/caxaria/php-codacy-coverage) - # Prerequisites - PHP 5.3 or later @@ -70,6 +73,11 @@ Even more control: - ```--base-url=``` defaults to http://codacy.com - ```--git-commit=``` defaults to the last commit hash +## Circle CI + +This project sends its own coverage during the build in circleCI. +Feel free to check our `circle.yml`, and send your coverage as a step of your build process. + ## Travis CI Add codacycoverage to your `.travis.yml`: From 692d4824f18240c9c8127fb8b80624ce6240ed4d Mon Sep 17 00:00:00 2001 From: Joao Machado Date: Thu, 12 Nov 2015 20:54:33 +0000 Subject: [PATCH 4/4] Enable Xdebug in circleCI --- circle.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/circle.yml b/circle.yml index 9f08c67..24cf9b6 100644 --- a/circle.yml +++ b/circle.yml @@ -6,6 +6,7 @@ dependencies: pre: - curl -s http://getcomposer.org/installer | php - php composer.phar install -n + - sed -i 's/^;//' ~/.phpenv/versions/$(phpenv global)/etc/conf.d/xdebug.ini test: post: