forked from zestedesavoir/zds-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
52 lines (42 loc) · 1.08 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 = py27
skipsdist = True
[testenv]
passenv = HOME
setenv =
DJANGO_SETTINGS_MODULE=zds.settings
PYTHONPATH = {toxinidir}
PYTHONDONTWRITEBYTECODE = 1
whitelist_externals=*
[testenv:back_mysql]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
MySQL-python
ujson
commands =
coverage run --source='.' {toxinidir}/manage.py test {posargs}
flake8
[testenv:back]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
commands = coverage run --source='.' {toxinidir}/manage.py test {posargs}
[testenv:front]
commands =
npm install
npm run travis
[testenv:docs]
# to call this use `tox -e docs -- html`
deps =
Sphinx
changedir = doc
commands =
make {posargs}
whitelist_external = make
[testenv:flake8]
commands = flake8 {posargs}
[flake8]
#show-source = True
max-line-length = 120
exclude = .tox,.venv,build,dist,doc,migrations,urls.py,settings.py,settings_prod.py,settings_test.py
# Ignore N802 (functions in lowercase) because the setUp() function in tests
ignore = N802