Files
modoboa/tox.ini
T
Christophe CHAUVETandGitHub 3b4cf12e68 Fix tox serve command (#1463)
* Fix tox serve command
* Fix tests fail on travis
2018-04-12 19:26:35 +02:00

45 lines
1.0 KiB
INI

[tox]
envlist = py27,py34
[testenv]
changedir=test_project
commands =
python ../tests.py
coverage run --source modoboa manage.py test modoboa.core modoboa.lib modoboa.admin modoboa.limits modoboa.relaydomains
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