8000 Add code test coverage for non-generated packages · mbohlool/client-python@2220b7e · GitHub
[go: up one dir, main page]

< 8000 a href="#start-of-content" data-skip-target-assigned="false" class="px-2 py-4 color-bg-accent-emphasis color-fg-on-emphasis show-on-focus js-skip-to-content">Skip to content

Commit 2220b7e

Browse files
committed
Add code test coverage for non-generated packages
1 parent 5677578 commit 2220b7e

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.travis.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ python:
44
- "2.7"
55
- "3.4"
66
# command to install dependencies
7-
install: "pip install -r requirements.txt"
7+
install:
8+
- "pip install -r requirements.txt"
9+
- "pip install codecov"
10+
811
# command to run tests
9-
script: nosetests
12+
script: nosetests --with-coverage --cover-package=kubernetes.config,kubernetes.watch --cover-tests
13+
14+
after_success:
15+
- bash <(curl -s https://codecov.io/bash)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![Build Status](https://travis-ci.org/kubernetes-incubator/client-python.svg?branch=master)](https://travis-ci.org/kubernetes-incubator/client-python)
44
[![PyPI version](https://badge.fury.io/py/kubernetes.svg)](https://badge.fury.io/py/kubernetes)
5+
[![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")
56

67
Python client for the [kubernetes](http://kubernetes.io/) API.
78

0 commit comments

Comments
 (0)
0