From e972061e8e2ddeae51e6d2570be0fbb8baccdd1b Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.dos.anjos@gmail.com>
Date: Mon, 24 Mar 2014 18:19:18 +0100
Subject: [PATCH] Add coveralls support; More badges

---
 .travis.yml | 3 ++-
 README.rst  | 8 ++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index d9b8dbb..6a7ec55 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -20,11 +20,12 @@ before_install:
   - if [ -n "${NUMPYSPEC}" ]; then sudo apt-get install -qq libatlas-dev libatlas-base-dev liblapack-dev gfortran; fi
   - if [ -n "${NUMPYSPEC}" ]; then pip install --upgrade pip setuptools; fi
   - if [ -n "${NUMPYSPEC}" ]; then pip install --find-links http://wheels.astropy.org/ --find-links http://wheels2.astropy.org/ --use-wheel numpy$NUMPYSPEC sphinx nose; fi
+  - pip install coveralls
 install:
   - "python bootstrap.py"
   - "./bin/buildout"
 script:
   - "./bin/python -c 'from xbob.io import get_config; print(get_config())'"
-  - "./bin/nosetests -sv"
+  - "./bin/coverage run --source=xbob.io ./bin/nosetests -sv"
   - "./bin/sphinx-build -b doctest doc sphinx"
   - "./bin/sphinx-build -b html doc sphinx"
diff --git a/README.rst b/README.rst
index 9b92043..da91ab2 100644
--- a/README.rst
+++ b/README.rst
@@ -4,6 +4,14 @@
 
 .. image:: https://travis-ci.org/bioidiap/xbob.io.svg?branch=master
    :target: https://travis-ci.org/bioidiap/xbob.io
+.. image:: https://coveralls.io/repos/bioidiap/xbob.io/badge.png
+   :target: https://coveralls.io/r/bioidiap/xbob.io
+.. image:: http://img.shields.io/github/tag/bioidiap/xbob.io.png
+   :target: https://github.com/bioidiap/xbob.io
+.. image:: http://img.shields.io/pypi/v/xbob.io.png
+   :target: https://pypi.python.org/pypi/xbob.io
+.. image:: http://img.shields.io/pypi/dm/xbob.io.png
+   :target: https://pypi.python.org/pypi/xbob.io
 
 ============================
  Python bindings for bob.io
-- 
GitLab