forked from modoboa/modoboa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
44 lines (40 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
[tox]
envlist = py{35,36,37}
[testenv]
changedir = test_project
commands =
python ../tests.py
coverage run --source modoboa manage.py test modoboa.core modoboa.lib modoboa.admin modoboa.limits modoboa.transport modoboa.relaydomains modoboa.dnstools modoboa.ldapsync
coverage report --show-missing
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
coverage
postgres: -r{toxinidir}/postgresql-requirements.txt
mysql: -r{toxinidir}/mysql-requirements.txt
setenv =
COVERAGE_FILE={envdir}/.coverage
DB=SQLITE
[testenv:serve]
changedir = test_project
whitelist_externals =
rm
commands =
rm -f modoboa_test.db
python manage.py migrate --no-input
python manage.py load_initial_data --extra-fixtures
python manage.py runserver
setenv =
DJANGO_SETTINGS_MODULE=test_project.settings
DB=SQLITE
DEBUG=1
[testenv:doc]
changedir = doc
deps =
sphinx
Pygments
whitelist_externals =
rm
commands =
rm -Rf {envtmpdir}/doctrees {envtmpdir}/html
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html