From 4568bcccf7b49d1c4426cebd34a6f3795d5b2f84 Mon Sep 17 00:00:00 2001
From: Donald Stufft <donald@stufft.io>
Date: Sat, 5 Oct 2013 20:05:13 -0400
Subject: [PATCH] Use coveralls.io to report test coverage

---
 .travis.yml | 3 +++
 README.rst  | 3 +++
 tox.ini     | 5 ++++-
 3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index 9526e4e4..221ded6d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -20,6 +20,9 @@ install:
 script:
   - tox
 
+after_success:
+  - coveralls
+
 notifications:
   irc:
     channels:
diff --git a/README.rst b/README.rst
index 5b4f93e2..8e163009 100644
--- a/README.rst
+++ b/README.rst
@@ -4,6 +4,9 @@ PyNaCl
 .. image:: https://travis-ci.org/pyca/pynacl.png?branch=master
     :target: https://travis-ci.org/pyca/pynacl
 
+.. image:: https://coveralls.io/repos/pyca/pynacl/badge.png?branch=master
+   :target: https://coveralls.io/r/pyca/pynacl?branch=master
+
 PyNaCl is a Python binding to the `Networking and Cryptography library`_,
 a crypto library with the stated goal of improving usability, security and
 speed.
diff --git a/tox.ini b/tox.ini
index e326e175..de028266 100644
--- a/tox.ini
+++ b/tox.ini
@@ -3,5 +3,8 @@ envlist = py26,py27,pypy,py33
 
 [testenv]
 deps =
+    coverage
     pytest
-commands = py.test
+commands =
+    coverage run --source nacl --branch -m pytest
+    coverage report -m
-- 
GitLab