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 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,