Merge pull request #94 from pyca/coveralls

Integrate with Coveralls
diff --git a/.travis.yml b/.travis.yml
index 52f1032..0a8bbab 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -36,5 +36,16 @@
   # travis.
   - pip install wheel
 
+  # Also install some tools for measuring code coverage and sending the results
+  # to coveralls.
+  - pip install coveralls coverage
+
 script:
-  - python setup.py bdist_wheel test
+  - coverage run --branch --source=OpenSSL setup.py bdist_wheel test
+  - coverage report -m
+
+after_success:
+    - coveralls
+
+notifications:
+  email: false
diff --git a/README b/README.rst
similarity index 74%
rename from README
rename to README.rst
index 1b2a093..de9aa4e 100644
--- a/README
+++ b/README.rst
@@ -7,3 +7,6 @@
 See http://github.com/pyca/pyopenssl for development.
 
 See https://mail.python.org/mailman/listinfo/pyopenssl-users for the discussion mailing list.
+
+.. image:: https://coveralls.io/repos/pyca/pyopenssl/badge.png
+  :target: https://coveralls.io/r/pyca/pyopenssl