Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[run]
source = django_u2f
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ db.sqlite3
testproj/localhost.*

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ install:
- pip install --upgrade pip wheel
- pip install -q $DJANGO_PACKAGE
- pip install -e .
- pip install -r ./testproj/requirements.txt
- pip install -r dev-requirements.txt
- pip freeze
script: ./testproj/manage.py test testproj
script:
- coverage run testproj/manage.py test testproj
- coverage report
after_success:
- coveralls
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ Django U2F
:alt: Build Status
:target: https://travis-ci.org/gavinwahl/django-u2f

.. image:: https://coveralls.io/repos/gavinwahl/django-u2f/badge.svg?branch=master
:alt: Test Coverage
:target: https://coveralls.io/r/gavinwahl/django-u2f?branch=master

django-u2f provides support for FIDO U2F security tokens in Django. The
functionality is similar to the `Security Key two-factor authentication that
Google recently announced
Expand Down
3 changes: 3 additions & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
coverage
coveralls
-r testproj/requirements.txt
7 changes: 5 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ envlist =
py27-django18,

[testenv]
usedevelop = True
deps =
django16: Django>=1.6,<1.7
django17: Django>=1.7,<1.8
django18: Django>=1.8,<1.9
-rtestproj/requirements.txt
-rdev-requirements.txt
commands =
python testproj/manage.py test testproj
coverage run testproj/manage.py test testproj
coverage report
coverage html