diff --git a/.travis.yml b/.travis.yml index 675a063c64ea..a60dcd35a199 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,6 +16,7 @@ script: after_success: - tox -e coveralls + - tox -e codecov deploy: provider: pypi diff --git a/README.rst b/README.rst index 0cab79fee119..c0c7eadba66e 100644 --- a/README.rst +++ b/README.rst @@ -212,8 +212,8 @@ Apache 2.0 - See `LICENSE`_ for more information. .. |build| image:: https://travis-ci.org/GoogleCloudPlatform/gcloud-python.svg?branch=master :target: https://travis-ci.org/GoogleCloudPlatform/gcloud-python -.. |coverage| image:: https://coveralls.io/repos/GoogleCloudPlatform/gcloud-python/badge.png?branch=master - :target: https://coveralls.io/r/GoogleCloudPlatform/gcloud-python?branch=master +.. |coverage| image:: https://codecov.io/gh/GoogleCloudPlatform/gcloud-python/branch/master/graph/badge.svg + :target: https://codecov.io/gh/GoogleCloudPlatform/gcloud-python .. |pypi| image:: https://img.shields.io/pypi/v/gcloud.svg :target: https://pypi.python.org/pypi/gcloud .. |versions| image:: https://img.shields.io/pypi/pyversions/gcloud.svg diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 000000000000..2bfc815b8319 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,9 @@ +comment: false +coverage: + status: + patch: + default: + target: '100' + project: + default: + target: '100' diff --git a/tox.ini b/tox.ini index 4d01e63b5d72..e88d2f3fb3bf 100644 --- a/tox.ini +++ b/tox.ini @@ -74,6 +74,28 @@ setenv = PYTHONPATH = passenv = {[testenv:system-tests]passenv} +[testenv:codecov] +basepython = + {[testenv:cover]basepython} +passenv = + CI + TRAVIS_BUILD_ID + TRAVIS + TRAVIS_BRANCH + TRAVIS_JOB_NUMBER + TRAVIS_PULL_REQUEST + TRAVIS_JOB_ID + TRAVIS_REPO_SLUG + TRAVIS_COMMIT +deps = + {[testenv:cover]deps} + codecov>=1.4.0 +commands = + {[testenv:cover]commands} + codecov +setenv = + PYTHONPATH = + [testenv:docs] basepython = python2.7