-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtox.ini
63 lines (51 loc) · 1.41 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
[tox]
envlist = py27-dj111, py36-dj111, py36-dj21, py35-dj22, py36-dj22
###########################
# Default testenv
###########################
[testenv]
passenv = CI TRAVIS TRAVIS_*
basepython =
py27: python2.7
pypy: pypy
py34: python3.4
py35: python3.5
py36: python3.6
deps =
-r{toxinidir}/tests/requirements.pip
dj111: Django>=1.11,<2.0
dj21: Django>=2.1,<2.2
dj22: Django>=2.2,<2.3
djdev: https://github.com/django/django/archive/master.tar.gz
commands =
# python -V
{envpython} --version
{envpython} {toxinidir}/tests/manage.py test
#{envpython} coverage run {toxinidir}/tests/manage.py test SKIP_SELENIUM=1
setenv =
DJANGO_SETTINGS_MODULE=settings
PYTHONPATH={toxinidir}
DJANGO_LIVE_TEST_SERVER_ADDRESS=localhost:8000-8010,8080,9200-9300
DJANGO_TEST_PROCESSES=1
###########################
# Run docs builder
###########################
[testenv:docs]
deps =
sphinx
sphinx_rtd_theme
basepython = python2.7
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 = python2.7
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,docs,tests,setup.py