mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
40 lines
825 B
INI
40 lines
825 B
INI
[tox]
|
|
envlist = py27,py34
|
|
|
|
[testenv]
|
|
changedir=test_project
|
|
commands =
|
|
coverage run --source modoboa manage.py test modoboa.admin
|
|
coverage report --show-missing
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
coverage
|
|
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
|