From 149c3278ef4a021f4688a66a8135c679018f3b32 Mon Sep 17 00:00:00 2001 From: Alice Scarpa Date: Thu, 26 Feb 2015 12:39:26 -0300 Subject: [PATCH] Added coveralls to travis and readme --- .travis.yml | 4 ++++ README.rst | 6 +++++- tox.ini | 4 +++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ff8023b..25fa173 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,10 @@ python: install: - pip install tox + - pip install coveralls script: - tox + +after_success: + coveralls diff --git a/README.rst b/README.rst index a682a49..19af7d3 100644 --- a/README.rst +++ b/README.rst @@ -1,5 +1,5 @@ =========================================== -mozci - Mozilla Continous Integration Tools +mozci - Mozilla Continuous Integration Tools =========================================== .. image:: http://img.shields.io/travis/armenzg/mozilla_ci_tools/master.png @@ -10,6 +10,10 @@ mozci - Mozilla Continous Integration Tools :target: https://readthedocs.org/projects/mozilla-ci-tools/?badge=latest :alt: Documentation Status +.. image:: https://coveralls.io/repos/armenzg/mozilla_ci_tools/badge.svg + :target: https://coveralls.io/r/armenzg/mozilla_ci_tools + :alt: Test coverage status + * Free software: `Mozilla License`__ __ https://www.mozilla.org/MPL/ diff --git a/tox.ini b/tox.ini index 3ccf731..4cd8959 100644 --- a/tox.ini +++ b/tox.ini @@ -5,6 +5,8 @@ envlist = py27 basepython = python2.7 deps = + coverage + coveralls pep8 pyflakes pytest @@ -12,4 +14,4 @@ deps = commands = pep8 --config=.pep8rc docs mozci scripts test pyflakes docs mozci scripts test - py.test test/ + coverage run --source=mozci -m py.test test/