forked from openedx/edx-proctoring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
93 lines (84 loc) · 1.82 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
89
90
91
92
[tox]
envlist =
py35-django22-drf{310,latest},py38-django{22,30}-drf{310,latest}
docs,
quality,
version_check,
pii_check,
translations
[testenv]
deps =
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
drf310: djangorestframework<3.11.0
drflatest: djangorestframework
-rrequirements/test.txt
commands =
python -Wd -m pytest {posargs:-n 3}
[testenv:js_tests]
whitelist_externals =
npm
make
commands =
npm install -g gulp-cli
npm install
make test-js
[testenv:js_lint]
whitelist_externals =
npm
make
commands =
npm install -g gulp-cli
npm install
make lint-js
[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/edx_proctoring.rst
rm -f docs/modules.rst
make -C docs clean
make -C docs html
python setup.py sdist bdist_wheel
twine check dist/*
[testenv:quality]
whitelist_externals =
make
rm
touch
deps =
djangorestframework
-r{toxinidir}/requirements/quality.txt
-r{toxinidir}/requirements/test.txt
commands =
pylint edx_proctoring
pycodestyle edx_proctoring
isort --check-only --recursive --diff edx_proctoring manage.py setup.py
[testenv:version_check]
deps =
-r{toxinidir}/requirements/base.txt
commands =
{toxinidir}/edx_proctoring/scripts/version_check.py
[testenv:pii_check]
whitelist_externals =
make
deps =
Django>=2.2,<2.3
djangorestframework<3.10.0
-r{toxinidir}/requirements/test.txt
commands =
make pii_check
[testenv:translations]
whitelist_externals =
make
deps =
-rrequirements/test.txt
commands =
make validate_translations