From feecf7f48e84ec54354c721ac4a55bdfd1fce069 Mon Sep 17 00:00:00 2001 From: Lukas Rychtecky Date: Sun, 1 Jan 2017 20:23:44 +0100 Subject: [PATCH] Added Coveralls --- .coveragerc | 3 +++ .travis.yml | 5 ++++- README.md | 2 ++ example/requirements/base.txt | 1 + 4 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..700f4b3 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,3 @@ +[run] +source = chamber +omit = */site-packages/*,*/migrations/*,*/lib/* diff --git a/.travis.yml b/.travis.yml index 5f83567..0ce7253 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,4 +29,7 @@ install: # command to run tests script: - coverage run --omit */site-packages/*,*/migrations/*,*/lib/* manage.py test test_chamber.tests --settings=dj.settings.settings -v 2 + coverage run --rcfile=$(pwd)/../.coveragerc manage.py test test_chamber.tests --settings=dj.settings.settings -v 2 + +after_success: + coveralls diff --git a/README.md b/README.md index 18b7a77..68287e6 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ [![Build Status](https://travis-ci.org/druids/django-chamber.svg?branch=master)](https://travis-ci.org/druids/django-chamber) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/012d28c820fd4b19a783618c05d7a0a9)](https://www.codacy.com/app/lukas-rychtecky/django-chamber?utm_source=github.com&utm_medium=referral&utm_content=druids/django-chamber&utm_campaign=badger) +[![Coverage +Status](https://coveralls.io/repos/github/druids/django-chamber/badge.svg?branch=master)](https://coveralls.io/github/druids/django-chamber?branch=master) Utilities library for [django-is-core](https://github.com/matllubos/django-is-core/tree/v1.3). diff --git a/example/requirements/base.txt b/example/requirements/base.txt index 9f7d631..2084f60 100644 --- a/example/requirements/base.txt +++ b/example/requirements/base.txt @@ -4,3 +4,4 @@ https://github.com/LukasRychtecky/germanium/tarball/1.0.12#egg=germanium-1.0.12 six==1.10.0 coverage==4.0.2 pyprind==2.9.9 +coveralls==1.1