forked from shtalinberg/django-el-pagination
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
65 lines (53 loc) · 1.45 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
57
58
59
60
61
62
63
64
65
[tox]
envlist = py35-dj{111,22}
py36-dj{111,22,30}
py{37,38}-dj{22,30}
lint
###########################
# Default testenv
###########################
[testenv]
passenv = CI TRAVIS USE_SELENIUM TRAVIS_*
deps =
-r{toxinidir}/tests/requirements.pip
dj111: Django>=1.11,<2.0
dj22: Django>=2.2,<3.0
dj30: Django>=3.0,<3.1
# dj31: Django>=3.1,<3.2
djdev: https://github.com/django/django/archive/master.tar.gz
commands =
{envpython} --version
{envpython} -Wd {envbindir}/coverage run --branch {toxinidir}/tests/manage.py test --verbose
coverage report -m
setenv =
DJANGO_SETTINGS_MODULE=settings
PYTHONPATH={toxinidir}
DJANGO_LIVE_TEST_SERVER_ADDRESS=localhost:8000-8010,8080,9200-9300
DJANGO_TEST_PROCESSES=1
[testenv:lint]
basepython = python3.6
commands =
flake8
isort --check-only -df
###########################
# Run docs builder
###########################
[testenv:docs]
deps =
sphinx
sphinx_rtd_theme
basepython = python3.6
changedir=doc
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees doc doc/_build/html
###########################
# Run docs linkcheck
###########################
[testenv:docs-linkcheck]
deps = {[testenv:docs]deps}
basepython = python3.6
commands =
sphinx-build -b html -d {envtmpdir}/doctrees doc doc/_build/html
sphinx-build -b linkcheck doc doc/_build/html
[pep8]
exclude = migrations,south_migrations,.tox,doc,docs,tests,setup.py