From 539d92e8227ed0fa935ad5dc662b9a64a1a6d363 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.dos.anjos@gmail.com>
Date: Mon, 24 Mar 2014 18:28:32 +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 dbda8d6..60e5dbf 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -19,11 +19,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.learn.activation import get_config; print(get_config())'"
-  - "./bin/nosetests -sv"
+  - "./bin/coverage run --source=xbob.learn.activation ./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 f7942a3..12d8897 100644
--- a/README.rst
+++ b/README.rst
@@ -4,6 +4,14 @@
 
 .. image:: https://travis-ci.org/bioidiap/xbob.learn.activation.svg?branch=master
    :target: https://travis-ci.org/bioidiap/xbob.learn.activation
+.. image:: https://coveralls.io/repos/bioidiap/xbob.learn.activation/badge.png
+   :target: https://coveralls.io/r/bioidiap/xbob.learn.activation
+.. image:: http://img.shields.io/github/tag/bioidiap/xbob.learn.activation.png
+   :target: https://github.com/bioidiap/xbob.learn.activation
+.. image:: http://img.shields.io/pypi/v/xbob.learn.activation.png
+   :target: https://pypi.python.org/pypi/xbob.learn.activation
+.. image:: http://img.shields.io/pypi/dm/xbob.learn.activation.png
+   :target: https://pypi.python.org/pypi/xbob.learn.activation
 
 =======================================================
  Python bindings for bob.machine's Activation functors
-- 
GitLab