forked from openedx/edx-enterprise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
88 lines (80 loc) · 2.19 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
79
80
81
82
83
84
85
86
87
88
[tox]
envlist = {py27,py35}-django{18,19,110}
[doc8]
max-line-length = 120
[pycodestyle]
exclude = .git,.tox,migrations
max-line-length = 120
[pydocstyle]
; D101 = Missing docstring in public class
; D200 = One-line docstring should fit on one line with quotes
; D203 = 1 blank line required before class docstring
; D212 = Multi-line docstring summary should start at the first line
ignore = D101,D200,D203,D212
match-dir = (?!migrations)
[pytest]
DJANGO_SETTINGS_MODULE = test_settings
addopts = --cov enterprise --cov-report term-missing --cov-report xml
norecursedirs = .* docs requirements
[testenv]
deps =
django18: Django>=1.8,<1.9
django18: djangorestframework>=3.2.3,<3.3.0
django18: django-filter>=0.11.0,<1.0.0
django19: Django>=1.9,<1.10
django19: djangorestframework>=3.2.3,<3.3.0
django19: django-filter>=0.11.0,<1.0.0
django110: Django>=1.10,<1.11
django110: djangorestframework>=3.5.0,<3.6.0
django110: django-filter>=1.0.0,<1.1.0
-r{toxinidir}/requirements/test.txt
commands =
py.test {posargs}
[testenv:docs]
setenv =
DJANGO_SETTINGS_MODULE = test_settings
PYTHONPATH = {toxinidir}
whitelist_externals =
make
rm
deps =
-r{toxinidir}/requirements/doc.txt
commands =
doc8 --ignore-path docs/_build README.rst docs
rm -f docs/enterprise.rst
rm -f docs/modules.rst
make -C docs clean
make -C docs html
python setup.py check --restructuredtext --strict
[testenv:quality]
whitelist_externals =
make
rm
touch
deps =
-r{toxinidir}/requirements/doc.txt
-r{toxinidir}/requirements/quality.txt
-r{toxinidir}/requirements/test.txt
commands =
touch tests/__init__.py
pylint enterprise
pylint tests
pylint test_utils
pylint --py3k enterprise
pylint --py3k tests
pylint --py3k test_utils
rm tests/__init__.py
pycodestyle enterprise tests test_utils
pydocstyle enterprise tests test_utils
isort --check-only --recursive tests enterprise test_utils manage.py setup.py test_settings.py
make help
[testenv:jasmine]
passenv = JASMINE_BROWSER DISPLAY
whitelist_externals =
make
rm
touch
deps =
-r{toxinidir}/requirements/js_test.txt
commands =
jasmine-ci