From ea22c7266abd7fd1a2fd95ac1a0258255bb49cb4 Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Wed, 19 Feb 2020 15:40:53 +0300 Subject: [PATCH 1/2] coverage --- .travis.yml | 4 +++- requirements.txt | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) 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/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 From c198372abb4f95889d672d4092fee59f53894bb6 Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Wed, 19 Feb 2020 15:42:36 +0300 Subject: [PATCH 2/2] coverage badge --- README.md | 1 + 1 file changed, 1 insertion(+) 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)