diff --git a/.travis.yml b/.travis.yml index 6854e61..216eef5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,4 +7,6 @@ python: before_install: - pip install -r requirements.txt script: - - nosetests -v + - nosetests -v --with-coverage --cover-xml +after_success: + - bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index 6038b4c..6ef288c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ [![Build Status](https://img.shields.io/travis/retailcrm/api-client-python/master.svg?style=flat-square)](https://travis-ci.org/retailcrm/api-client-python) +[![Coverage](https://img.shields.io/codecov/c/gh/retailcrm/api-client-python/master.svg?style=flat-square)](https://codecov.io/gh/retailcrm/api-client-python) [![PyPI](https://img.shields.io/pypi/v/retailcrm.svg?style=flat-square)](https://pypi.python.org/pypi/retailcrm) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/retailcrm.svg?style=flat-square)](https://pypi.python.org/pypi/retailcrm) diff --git a/requirements.txt b/requirements.txt index 82ced2b..ce028db 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ multidimensional-urlencode==0.0.4 nose==1.3.7 requests==2.20.0 +coverage==5.0.2