forked from openedx/xblock-qualtrics-survey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
53 lines (46 loc) · 1.11 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
[tox]
envlist = csslint,eslint,py38-django{22,30,31},quality
[testenv]
deps =
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
-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]
whitelist_externals = {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]
whitelist_externals = {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