Skip to content

Commit

Permalink
Merge pull request #56 from percipient/coverage
Browse files Browse the repository at this point in the history
Start getting coverage information
  • Loading branch information
clokep committed Dec 14, 2017
2 parents a2ca9ed + d464863 commit c6ce754
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Expand Up @@ -3,10 +3,13 @@ __pycache__/
*.sw*
db.sqlite
.idea/
.tox/

# Distributions.
.eggs/
build/
dist/
django_allauth_2fa.egg-info/

# Testing
.coverage
.tox
16 changes: 14 additions & 2 deletions .travis.yml
@@ -1,8 +1,20 @@
language: python
# This version of python is only used to run tox.
python: 3.6
script: tox

cache:
directories:
- $HOME/.cache/pip
- $TRAVIS_BUILD_DIR/.tox

notifications:
email: false

install:
- pip install tox
- pip install coveralls tox

script:
- tox

after_success:
- coveralls
3 changes: 3 additions & 0 deletions README.rst
Expand Up @@ -4,6 +4,9 @@ django-allauth-2fa
.. image:: https://travis-ci.org/percipient/django-allauth-2fa.svg?branch=master
:target: https://travis-ci.org/percipient/django-allauth-2fa

.. image:: https://coveralls.io/repos/github/percipient/django-allauth-2fa/badge.svg?branch=master
:target: https://coveralls.io/github/percipient/django-allauth-2fa?branch=master

django-allauth-2fa adds `two-factor authentication`_ to `django-allauth`_, a set
of `Django`_ applications which help with authentication, registration, and
other account management tasks.
Expand Down
8 changes: 7 additions & 1 deletion tox.ini
Expand Up @@ -18,12 +18,18 @@ skip_missing_interpreters = True
[testenv]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
commands =
python manage.py test
coverage run manage.py test
coverage report
coverage html
deps =
coverage
django18: Django>=1.8,<1.9
django111: Django>=1.11a,<2.0
django20: Django>=2.0,<2.1
djangomaster: https://codeload.github.com/django/django/zip/master
dotp03: django-otp>=0.3,<0.4
dotp04: django-otp>=0.4,<0.5
dotpmaster: hg+https://bitbucket.org/psagers/django-otp#egg=subdir&subdirectory=django-otp

[coverage:run]
include = allauth_2fa*

0 comments on commit c6ce754

Please sign in to comment.