forked from caktus/django-treenav
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
39 lines (34 loc) · 818 Bytes
/
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
[tox]
envlist = {py27,py34,py36}-dj1.11,{py34,py36}-dj2.0,{py27,py36}-flake8,coverage,docs
[testenv]
basepython =
py27: python2.7
py34: python3.4
py36: python3.6
deps =
dj1.11: Django>=1.11,<2.0
dj2.0: Django>=2.0,<2.1
commands = {envpython} runtests.py
[testenv:py27-flake8]
commands = flake8 .
deps =
flake8>=2.2.2
Django>=1.11,<2.0
[testenv:py36-flake8]
commands = flake8 .
deps =
flake8>=2.2.2
Django>=2.0,<2.1
[testenv:coverage]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
basepython = python3.6
commands =
coverage run runtests.py
coverage report -m --fail-under 85
deps =
Django>=2.0,<2.1
coverage>=3.7.1
[testenv:docs]
basepython = python3.6
deps = Sphinx
commands = {envbindir}/sphinx-build -a -n -b html -d docs/_build/doctrees docs docs/_build/html