forked from valohai/django-allauth-2fa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
56 lines (51 loc) · 1.65 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist =
# django-otp 0.3.12 and Django 1.11 are the earliest supported version.
# django-allauth 0.41.0 dropped support for Django 1.11.
py{35,36,37,38}-django111-dotp{03,04,master}-allauth40,
# django-otp 0.5 adds support for Django 2.1
py{35,36,37,38}-django22-dotp{05,06,07,master}-allauth41,
# Django 3.0 requires Python 3.6.
# django-otp 0.7 adds support for Django 3.0.
py{36,37,38}-django{30,master}-dotp{07,master}-allauth41,
# Check code style.
flake8
skip_missing_interpreters = True
[testenv]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
commands =
coverage run manage.py test
coverage report
coverage html
deps =
coverage
django111: Django>=1.11,<2.0
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
# Django master builds are failing at the moment.
djangomaster: https://codeload.github.com/django/django/zip/master
dotp03: django-otp>=0.3,<0.4
dotp04: django-otp>=0.4,<0.5
dotp05: django-otp>=0.5,<0.6
dotp06: django-otp>=0.6,<0.7
dotp07: django-otp>=0.7,<0.8
allauth40: django-allauth<0.41.0
allauth41: django-allauth>=0.41.0
dotpmaster: https://codeload.github.com/django-otp/django-otp/zip/master
[testenv:flake8]
skip_install = True
deps =
flake8
flake8-import-order
commands =
flake8 {toxinidir}
[coverage:run]
include =
allauth_2fa/*
tests/*
[coverage:report]
show_missing = True