diff --git a/.travis.yml b/.travis.yml index 82ce41e085..33409c7337 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,12 @@ python: - "2.7" - "3.4" # command to install dependencies -install: "pip install -r requirements.txt" +install: + - "pip install -r requirements.txt" + - "pip install codecov" + # command to run tests -script: nosetests +script: nosetests --with-coverage --cover-package=kubernetes.config,kubernetes.watch --cover-tests + +after_success: + - bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index 0b141da1ef..39da703ef5 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Build Status](https://travis-ci.org/kubernetes-incubator/client-python.svg?branch=master)](https://travis-ci.org/kubernetes-incubator/client-python) [![PyPI version](https://badge.fury.io/py/kubernetes.svg)](https://badge.fury.io/py/kubernetes) +[![codecov](https://codecov.io/gh/kubernetes-incubator/client-python/branch/master/graph/badge.svg)](https://codecov.io/gh/kubernetes-incubator/client-python "Non-generated packages only") Python client for the [kubernetes](http://kubernetes.io/) API.