Add code test coverage for non-generated packages

This commit is contained in:
mbohlool 2016-12-01 01:55:24 -08:00
parent 5677578313
commit 2220b7e0c6
2 changed files with 9 additions and 2 deletions

View File

@ -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)

View File

@ -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.