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 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`: diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000..24cf9b6 --- /dev/null +++ b/circle.yml @@ -0,0 +1,14 @@ +machine: + php: + version: 5.3.10 + +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: + - php vendor/bin/phpunit + - php bin/codacycoverage clover