forked from Stanford-Online/xblock-sql-grader
-
Notifications
You must be signed in to change notification settings - Fork 10
/
tox.ini
101 lines (88 loc) · 1.77 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
93
94
95
96
97
98
99
100
[tox]
envlist =
csslint
eslint
py{311,312}-django{42},quality
[testenv]
deps =
-rrequirements/test.txt
django42: Django>=4.2,<4.3
commands =
coverage run manage.py test
coverage report
coverage html
[testenv:clean]
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 sql_grader/static/
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 sql_grader/static/view.js
deps =
skip_install = True
[testenv:quality]
passenv =
TRAVIS
TRAVIS_JOB_ID
TRAVIS_BRANCH
deps =
-rrequirements/quality.txt
commands =
pycodestyle sql_grader/
pylint sql_grader/
[testenv:translations_push]
deps =
transifex-client
commands =
tx push -s
[testenv:translations_pull]
deps =
edx-i18n-tools==1.3.0
transifex-client
commands =
cd sql_grader && i18n_tool transifex pull
allowlist_externals =
cd
[testenv:translations_compile]
deps =
edx-i18n-tools==1.3.0
commands =
cd sql_grader && i18n_tool generate
allowlist_externals =
cd
[testenv:translations_dummy]
deps =
edx-i18n-tools==1.3.0
commands =
cd sql_grader && i18n_tool dummy
allowlist_externals =
cd
[testenv:translations_detect_changed]
deps =
edx-i18n-tools==1.3.0
commands =
cd sql_grader && i18n_tool changed
allowlist_externals =
cd
[testenv:translations_extract]
deps =
edx-i18n-tools==1.3.0
commands =
cd sql_grader && i18n_tool extract
allowlist_externals =
cd