-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
53 lines (46 loc) · 1.1 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
[tox]
envlist = csslint,eslint,py27,pycodestyle,pylint
[testenv]
deps =
coverage
commands =
coverage run manage.py test
coverage report
coverage html
[testenv:clean]
commands =
coverage erase
deps =
coverage
skip_install = True
[testenv:csslint]
whitelist_externals = {toxinidir}/node_modules/csslint/dist/cli.js
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
commands =
{toxinidir}/node_modules/csslint/dist/cli.js xblockmufi/public/view.css xblockmufi/public/edit.css
deps =
skip_install = True
[testenv:eslint]
whitelist_externals = {toxinidir}/node_modules/eslint/bin/eslint.js
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
commands =
{toxinidir}/node_modules/eslint/bin/eslint.js --fix xblockmufi/public/view.js xblockmufi/public/edit.js
deps =
skip_install = True
[testenv:pycodestyle]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps =
pycodestyle
commands =
pycodestyle xblockmufi/
[testenv:pylint]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps =
pylint
commands =
pylint xblockmufi/
[testenv:transifex]
deps =
transifex-client
commands =
tx push -s