diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 00000000..331b8f3b --- /dev/null +++ b/.coveragerc @@ -0,0 +1,3 @@ +[run] +source = instagram +branch = False diff --git a/.travis.yml b/.travis.yml index 20f942b7..a5196081 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,8 @@ install: script: - "coverage run tests.py" - "coverage xml -o coverage.xml" +after_success: + - "coveralls" - "if [[ $TRAVIS_PYTHON_VERSION != 2.6 ]]; then python-codacy-coverage -r coverage.xml; fi" diff --git a/README.md b/README.md index 79af5b0f..2a85d2ac 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ [![Build Status](https://api.travis-ci.org/wkoot/python-instagram.svg)](https://travis-ci.org/wkoot/python-instagram) [![Code Coverage](https://api.codacy.com/project/badge/coverage/6dd0431b8752421d95521ea59fc6ecc1)](https://www.codacy.com/app/wkoot/python-instagram) +[![Coverage Status](https://coveralls.io/repos/github/wkoot/python-instagram/badge.svg)](https://coveralls.io/github/wkoot/python-instagram) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/6dd0431b8752421d95521ea59fc6ecc1)](https://www.codacy.com/app/wkoot/python-instagram) diff --git a/build_requirements.txt b/build_requirements.txt index 35a0868f..ff4cee22 100644 --- a/build_requirements.txt +++ b/build_requirements.txt @@ -1,3 +1,4 @@ twine==1.8.1 coverage==4.4.1 +coveralls==1.2.0 codacy-coverage==1.3.3