generated from Avarest-Global-Enterprise/shuup
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
86 lines (81 loc) · 2.21 KB
/
tox.ini
File metadata and controls
86 lines (81 loc) · 2.21 KB
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
79
80
81
82
83
84
85
86
[tox]
minversion=2.3.1
skipsdist = True
envlist =
flake8-isort
license_headers
sanity
migrations
{py27,py34,py35,py36,py37}-{django18,django19,django111,django22}-nomigrations
py35-nomigrations-nocoverage-browser-travis-admin
py35-nomigrations-nocoverage-browser-travis-front
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
# Python 2.7
py27: pillow>=3.4.2,<4
py27: django-jinja<=2.5
django111: django>=1.11,<2
django111: django-filter>=1.0,<1.2
django111: django-parler>=1.5,<2
django111: djangorestframework>=3.5,<3.6
django111: djangorestframework-jwt>=1.9,<2
django22: django>=2.2.7,<2.3
# Do not remove the following BEGIN/END comments. setup.py uses them
# BEGIN testing deps
beautifulsoup4==4.5.3
html5lib==0.999999999
mock==3.0.5
pytest-cache==1.0
pytest==5.4.1
pytest-sugar==0.9.4
pytest-cov==2.4.0
pytest-django==3.8.0
pytest-splinter==2.0.1
selenium==3.141.0
splinter==0.13.0
weasyprint==0.34
# END testing deps
passenv = DISPLAY
setenv =
browser: SHUUP_BROWSER_TESTS=1
travis: SHUUP_TESTS_TRAVIS=1
admin: TEST_ARGS=shuup_tests/browser/admin
front: TEST_ARGS=shuup_tests/browser/front
nomigrations: SHUUP_WORKBENCH_DISABLE_MIGRATIONS=1
nocoverage: COV_ARGS=
usedevelop = True
commands =
browser: python setup.py build_resources --ci
browser: python setup.py build_messages
py.test \
-ra --doctest-modules \
{env:COV_ARGS:--cov shuup --cov-config=.coveragerc} \
{posargs:{env:TEST_ARGS:shuup_tests shuup}}
[testenv:flake8-isort]
deps =
flake8>3,<4
isort>4.3,<5
usedevelop = True
commands =
flake8
isort --check-only
[testenv:license_headers]
skip_install = True
deps =
usedevelop = False
commands = {toxinidir}/_misc/ensure_license_headers.py -s shuup
[testenv:migrations]
deps =
usedevelop = True
commands = python -m shuup_workbench migrate
[testenv:sanity]
skip_install = True
deps =
usedevelop = False
commands = {toxinidir}/_misc/check_sanity.py