-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
36 lines (31 loc) · 924 Bytes
/
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
[tox]
envlist = py27, flake8, docs, dennis
skipsdist = True
[testenv:py27]
whitelist_externals = make
deps =
-rrequirements/local.txt
commands =
make compilejsi18n collectstatic coveragetest target={posargs:kuma}
setenv =
PYTHONPATH = .
CFLAGS = -O0
# TODO: remove once http://bugzil.la/1127798 is fixed
PYTHONHASHSEED = 0
passenv=DJANGO_SETTINGS_MODULE DEBIAN_FRONTEND CFLAGS
[testenv:flake8]
basepython = python2.7
deps = flake8
commands = flake8 kuma
[testenv:docs]
basepython = python2.7
deps = -rrequirements/docs.txt
commands = sphinx-build -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
[testenv:dennis]
basepython = python2.7
# TODO: Update to released version of dennis when aca57f6d is released.
deps = https://github.com/willkg/dennis/archive/aca57f6d.zip
commands = dennis-cmd lint --errorsonly locale/
[flake8]
exclude = **/migrations/**,.tox,*.egg,vendor
ignore = E501,E731