Skip to content

Commit

Permalink
Fix travis (#2)
Browse files Browse the repository at this point in the history
* Fix travis

* Update .travis.yml

* Update .coveralls.yml

* Update composer.json

* Update .coveralls.yml
  • Loading branch information
slavcodev committed Dec 9, 2018
1 parent c4e3816 commit cb0cbbe
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit cb0cbbe

Please sign in to comment.