forked from Stanford-Online/xblock-free-text-response
-
Notifications
You must be signed in to change notification settings - Fork 16
/
tox.ini
87 lines (76 loc) · 1.76 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
[tox]
envlist = csslint,eslint,pycodestyle,pylint,py38-django{42}, translations_validate
[testenv]
usedevelop = True
deps =
django42: Django>=4.2,<4.3
-rrequirements/test.txt
commands =
coverage run manage.py test freetextresponse.tests
coverage report
coverage html
[testenv:clean]
deps =
-rrequirements/test.txt
commands =
coverage erase
skip_install = True
[testenv:csslint]
allowlist_externals = {toxinidir}/node_modules/csslint/dist/cli.js
passenv =
TRAVIS
TRAVIS_JOB_ID
TRAVIS_BRANCH
commands =
{toxinidir}/node_modules/csslint/dist/cli.js freetextresponse/public/
deps =
skip_install = True
[testenv:eslint]
allowlist_externals = {toxinidir}/node_modules/eslint/bin/eslint.js
passenv =
TRAVIS
TRAVIS_JOB_ID
TRAVIS_BRANCH
commands =
{toxinidir}/node_modules/eslint/bin/eslint.js --fix freetextresponse/public/view.js
deps =
skip_install = True
[testenv:quality]
passenv =
TRAVIS
TRAVIS_JOB_ID
TRAVIS_BRANCH
deps =
-rrequirements/quality.txt
commands =
pycodestyle freetextresponse/
pylint freetextresponse/
[testenv:translations_validate]
allowlist_externals = make
commands =
make translations_validate
[testenv:translations_compile]
deps =
edx-i18n-tools==1.3.0
changedir = {toxinidir}/freetextresponse
commands =
i18n_tool generate
[testenv:translations_dummy]
deps =
edx-i18n-tools==1.3.0
changedir = {toxinidir}/freetextresponse
commands =
i18n_tool dummy
[testenv:translations_detect_changed]
deps =
edx-i18n-tools==1.3.0
changedir = {toxinidir}/freetextresponse
commands =
i18n_tool extract
i18n_tool changed
[testenv:translations_extract]
deps =
edx-i18n-tools==1.3.0
changedir = {toxinidir}/freetextresponse
commands =
i18n_tool extract