forked from openedx/xblock-qualtrics-survey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
65 lines (58 loc) · 1.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
[tox]
envlist = csslint,eslint,py38-django{32,42},quality
[testenv]
deps =
django32: Django>=3.2,<4.0
django42: Django>=4.2,<4.3
-rrequirements/test.txt
commands =
coverage run manage.py test
coverage report
coverage html
[testenv:clean]
commands =
coverage erase
deps =
-rrequirements/test.txt
skip_install = True
[testenv:csslint]
allowlist_externals =
make
{toxinidir}/node_modules/csslint/dist/cli.js
passenv =
TRAVIS
TRAVIS_JOB_ID
TRAVIS_BRANCH
commands =
make requirements_js
{toxinidir}/node_modules/csslint/dist/cli.js qualtricssurvey/public/
deps =
skip_install = True
[testenv:eslint]
allowlist_externals =
make
{toxinidir}/node_modules/eslint/bin/eslint.js
passenv =
TRAVIS
TRAVIS_JOB_ID
TRAVIS_BRANCH
commands =
make requirements_js
{toxinidir}/node_modules/eslint/bin/eslint.js --fix qualtricssurvey/public/view.js
deps =
skip_install = True
[testenv:quality]
passenv =
TRAVIS
TRAVIS_JOB_ID
TRAVIS_BRANCH
deps =
-rrequirements/quality.txt
commands =
pycodestyle qualtricssurvey/
pylint qualtricssurvey/
[testenv:transifex]
deps =
transifex-client
commands =
tx push -s