diff --git a/.coveralls.yml b/.coveralls.yml index f973d74..75aefc8 100644 --- a/.coveralls.yml +++ b/.coveralls.yml @@ -1,4 +1,3 @@ # for php-coveralls service_name: travis-ci -src_dir: src -coverage_clover: build/logs/coverage.xml +coverage_clover: build/logs/clover.xml diff --git a/.travis.yml b/.travis.yml index 1a16a48..0e4366c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,9 +27,9 @@ install: script: # PHPUnit - if [[ $EXECUTE_COVERAGE == 'true' ]]; then mkdir -p build/logs ; fi - - if [[ $EXECUTE_COVERAGE == 'true' ]]; then ./vendor/bin/phpunit --coverage-text --coverage-clover=build/logs/coverage.xml ; else ./vendor/bin/phpunit ; fi + - if [[ $EXECUTE_COVERAGE == 'true' ]]; then ./vendor/bin/phpunit --coverage-text --coverage-clover=build/logs/clover.xml ; else ./vendor/bin/phpunit ; fi # PHP CS Fixer - if [[ EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/php-cs-fixer fix -v --diff --dry-run ; fi after_success: - - if [[ $EXECUTE_COVERAGE == 'true' ]]; then .vendor/bin/php-coveralls -v ; fi + - if [[ $EXECUTE_COVERAGE == 'true' ]]; then ./vendor/bin/php-coveralls -v ; fi diff --git a/README.md b/README.md index 2d9a030..1b4aedd 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ -[![Coverage Status](https://coveralls.io/repos/github/Rebilly/country/badge.svg?branch=master)](https://coveralls.io/github/Rebilly/country?branch=master) +[![Software License][ico-license]][link-license] +[![Latest Version on Packagist][ico-version]][link-packagist] +[![Build Status][ico-travis]][link-travis] +[![Coverage Status][ico-coveralls]][link-coveralls] # Country Project @@ -81,3 +84,14 @@ If you discover a security vulnerability, please report it to security at rebill ## License The Country library is open-sourced under the [MIT License](./LICENSE) distributed with the software. + + +[ico-version]: https://img.shields.io/packagist/v/Rebilly/country.svg?style=flat-square +[ico-license]: https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square +[ico-travis]: https://img.shields.io/travis/Rebilly/country/master.svg?style=flat-square +[ico-coveralls]: https://img.shields.io/coveralls/github/Rebilly/country.svg?style=flat-square + +[link-packagist]: https://packagist.org/packages/Rebilly/country +[link-license]: LICENSE +[link-travis]: https://travis-ci.org/Rebilly/country +[link-coveralls]: https://coveralls.io/github/Rebilly/country?branch=master diff --git a/composer.json b/composer.json index 3e763c4..dd6104c 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,8 @@ }, "require-dev": { "friendsofphp/php-cs-fixer": "^2.8", - "phpunit/phpunit": "^7.5" + "phpunit/phpunit": "^7.5", + "php-coveralls/php-coveralls": "^2.1" }, "autoload": { "psr-4": {