Merge pull request #15 from alex/coveralls
Record coverage
diff --git a/.gitignore b/.gitignore
index c5a2f99..2bf40e7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
_build/
.tox/
*.egg-info/
+.coverage
diff --git a/.travis.yml b/.travis.yml
index fe46c7d..f7ff6d9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,7 +9,10 @@
- TOX_ENV=pep8
install:
- - pip install tox
+ - pip install tox coveralls
script:
- tox -e $TOX_ENV
+
+after_success:
+ - coveralls
diff --git a/tox.ini b/tox.ini
index 4a80fc8..5d214bd 100644
--- a/tox.ini
+++ b/tox.ini
@@ -2,8 +2,8 @@
envlist = py26,py27,pypy,py32,py33,docs,pep8
[testenv]
-deps = pytest
-commands = py.test
+deps = pytest-cov
+commands = py.test --cov=cryptography/
[testenv:docs]
deps = sphinx