forked from awesto/django-shop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
36 lines (32 loc) · 988 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
[tox]
envlist = coverage-clean, py{27,34,35,36}-django{19,110,111}, coverage-report
[testenv]
# usedevelop is needed to collect coverage data.
usedevelop = True
install_command = pip install --no-deps {opts} {packages}
commands = coverage run -a {envbindir}/py.test example
deps =
django19: django<1.10
django110: django<1.11
django111: django<2.0
py27: -r{toxinidir}/requirements/test_py2.txt
py34: -r{toxinidir}/requirements/test_py3.txt
py35: -r{toxinidir}/requirements/test_py3.txt
py36: -r{toxinidir}/requirements/test_py3.txt
setenv =
DJANGO_SHOP_TUTORIAL = i18n_polymorphic
DJANGO_DEBUG = 1
[testenv:coverage-clean]
deps =
skipsdist = true
whitelist_externals = /bin/rm
commands = rm -f .coverage
[testenv:coverage-report]
deps = coverage
skipsdist = true
commands = coverage report
[testenv:docs]
deps =
-r{toxinidir}/requirements/docs.txt
commands=
sphinx-build -W -b html -d {envtmpdir}/doctrees {toxinidir}/docs {envtmpdir}/html