forked from shuup/shuup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
74 lines (69 loc) · 1.68 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
[tox]
minversion=2.3.1
skipsdist = True
envlist =
flake8
isort
license_headers
sanity
{py27,py34,py35}-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
# Do not remove the following BEGIN/END comments. setup.py uses them
# BEGIN testing deps
beautifulsoup4==4.4.0
mock==1.0.1
pytest-cache==1.0
pytest==2.8.4
pytest-cov==2.2.0
pytest-django==2.9.1
pytest-splinter==1.7.5
selenium==2.53.6
splinter==0.7.3
# 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 -v --doctest-modules \
{env:COV_ARGS:--cov shuup --cov-config=.coveragerc} \
{posargs:{env:TEST_ARGS:shuup_tests shuup}}
[testenv:flake8]
skip_install = True
deps =
flake8==2.5.4
mccabe==0.5.0
pep8==1.7.0
pep8-naming==0.3.3
pyflakes==1.2.3
usedevelop = False
commands = flake8
[testenv:isort]
deps =
isort==4.2.2
usedevelop = True
commands = isort -sp {toxinidir} -c -rc shuup
[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