From aaa6bd26d7c043b7a8c8d44a8920812acf1929eb Mon Sep 17 00:00:00 2001 From: Tushar Makkar Date: Fri, 23 Sep 2016 18:47:52 +0530 Subject: [PATCH 1/2] Adding coveralls badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 1eae118..fc26f40 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Voluptuous is a Python data validation library [![Build Status](https://travis-ci.org/alecthomas/voluptuous.png)](https://travis-ci.org/alecthomas/voluptuous) [![Stories in Ready](https://badge.waffle.io/alecthomas/voluptuous.png?label=ready&title=Ready)](https://waffle.io/alecthomas/voluptuous) +[![Coverage Status](https://coveralls.io/repos/github/alecthomas/voluptuous/badge.svg?branch=master)](https://coveralls.io/github/alecthomas/voluptuous?branch=master) Voluptuous, *despite* the name, is a Python data validation library. It is primarily intended for validating data coming into Python as JSON, From 1cba13ec98fc1a3dd2fbc02e2f67f238a451bdd8 Mon Sep 17 00:00:00 2001 From: Tushar Makkar Date: Fri, 23 Sep 2016 19:14:40 +0530 Subject: [PATCH 2/2] Making changes in travis.yml and coveragerc for coveralls and Python3.2 coverage issue fix --- .coveragerc | 2 ++ .travis.yml | 9 +++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..d978679 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,2 @@ +[run] +omit = *tests* diff --git a/.travis.yml b/.travis.yml index 14ed583..725c58d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,11 @@ python: - "3.5" - "pypy" # command to install dependencies -#install: "pip install -r requirements.txt --use-mirrors" +install: + - pip install coveralls + # Need to do this since coverage is broken in travis https://github.com/travis-ci/travis-ci/issues/4866 + - pip install 'coverage<4' # command to run tests -script: nosetests +script: nosetests --with-coverage --cover-package=voluptuous +after_success: + - coveralls \ No newline at end of file