forked from carltongibson/django-filter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
53 lines (46 loc) · 1.34 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
[tox]
envlist =
{py35,py36}-django111,
{py35,py36}-django20,
{py35,py36,py37}-django21,
{py35,py36,py37}-django22,
{py36,py37,38}-django30,
{py36,py37,38}-latest,
isort,lint,docs,warnings,
[latest]
deps =
https://github.com/django/django/archive/master.tar.gz
https://github.com/encode/django-rest-framework/archive/master.tar.gz
[testenv]
commands = coverage run --parallel-mode --source django_filters ./runtests.py --testrunner xmlrunner.extra.djangotestrunner.XMLTestRunner {posargs}
ignore_outcome =
latest: True
setenv =
PYTHONDONTWRITEBYTECODE=1
deps =
django111: django==1.11.*
django20: django==2.0.*
django21: django==2.1.*
django22: django==2.2.*
django30: django>=3.0,<3.1
djangorestframework==3.10.*
latest: {[latest]deps}
-rrequirements/test-ci.txt
[testenv:isort]
commands = isort --check-only --recursive django_filters tests {posargs}
deps = isort
[testenv:lint]
commands = flake8 django_filters tests {posargs}
deps = flake8
[testenv:docs]
commands = sphinx-build -WE docs _docs
deps =
sphinx
sphinx-rtd-theme
[testenv:warnings]
ignore_outcome = True
unignore_outcomes = True
commands = python -Werror ./runtests.py --testrunner xmlrunner.extra.djangotestrunner.XMLTestRunner {posargs}
deps =
{[latest]deps}
-rrequirements/test-ci.txt