Skip to content

Commit 5ed495c

Browse files
committed
Add Coverage and Coveralls setup
1 parent fd54d94 commit 5ed495c

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.coveragerc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[run]
2+
append = True
3+
source = jwt

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ env:
77
- TOX_ENV=py32
88
- TOX_ENV=py33
99
install:
10-
- pip install tox
10+
- pip install tox coveralls
1111
script:
12+
- coverage erase
1213
- tox -e $TOX_ENV
14+
after_success:
15+
- coveralls

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
envlist = py26, py27, py32, py33, py34
33

44
[testenv]
5-
commands = {envpython} setup.py test
5+
commands = coverage run setup.py test
66
deps =
77
cryptography
88
unittest2

0 commit comments

Comments
 (0)