forked from shuup/shuup
-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
78 lines (74 loc) · 1.83 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
66
67
68
69
70
71
72
73
74
75
76
77
78
[tox]
minversion=2.3.1
skipsdist = True
envlist =
flake8
isort
license_headers
sanity
{py27,py34,py35}-{django18,django19}-nomigrations
py35-nomigrations-nocoverage-browser
py35
[testenv]
deps =
# Pip 6 is needed for Environment markers (PEP-426) support, which
# are used to mark Python 2 only deps (like enum34)
pip>=6.0
# Setuptools 8 or newer is needod for "~=" version specifiers
setuptools>=8.0
# Django
django18: django>=1.8,<1.9
django19: django>=1.9,<1.10
# Do not remove the following BEGIN/END comments. setup.py uses them
# BEGIN testing deps
beautifulsoup4==4.5.3
html5lib==0.999999999
mock==2.0.0
pytest-cache==1.0
pytest==3.0.6
pytest-cov==2.4.0
pytest-django==3.1.2
pytest-splinter==1.8.1
pytest-sugar==0.8.0
selenium==3.0.2
splinter==0.7.5
weasyprint==0.34
# END testing deps
passenv = DISPLAY
setenv =
browser: SHUUP_BROWSER_TESTS=1
browser: TEST_ARGS=shuup_tests/browser
browser: USE_DEVELOP=False
nomigrations: SHUUP_WORKBENCH_DISABLE_MIGRATIONS=1
nocoverage: COV_ARGS=
usedevelop = {env:USE_DEVELOP:True}
commands =
browser: pip install .
py.test \
-ra --doctest-modules \
{env:COV_ARGS:--cov shuup --cov-config=.coveragerc} \
{posargs:{env:TEST_ARGS:shuup_tests shuup}}
[testenv:flake8]
deps =
flake8==3.3.0
flake8-isort==2.1.3
flake8-polyfill==1.0.1
isort==4.2.5
mccabe==0.6.1
pep8==1.7.0
pep8-naming==0.4.1
pycodestyle==2.3.1
pyflakes==1.5.0
testfixtures==4.13.5
usedevelop = True
commands = flake8
[testenv:license_headers]
skip_install = True
deps =
usedevelop = False
commands = {toxinidir}/_misc/ensure_license_headers.py -s shuup
[testenv:sanity]
skip_install = True
deps =
usedevelop = False
commands = {toxinidir}/_misc/check_sanity.py