<NME> tox.ini
<BEF> [tox]
envlist = py{37,38,39}

[testenv]
changedir=test_project
commands =
    python ../tests.py
    coverage run --source ../modoboa manage.py test modoboa.core modoboa.lib modoboa.admin.tests modoboa.limits modoboa.relaydomains
deps =
    -r{toxinidir}/test-requirements.txt
    coverage
setenv =
    DB=SQLITE

[testenv:serve]
    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

<MSG> Merge branch '1.6.x'

<DFF> @@ -5,11 +5,13 @@ envlist = py27
 changedir=test_project
 commands =
     python ../tests.py
-    coverage run --source ../modoboa manage.py test modoboa.core modoboa.lib modoboa.admin.tests modoboa.limits modoboa.relaydomains
+    coverage run --source modoboa manage.py test modoboa.core modoboa.lib modoboa.admin.tests modoboa.limits modoboa.relaydomains
+    coverage report --show-missing
 deps =
     -r{toxinidir}/test-requirements.txt
     coverage
 setenv =
+    COVERAGE_FILE={envdir}/.coverage
     DB=SQLITE
 
 [testenv:serve]

Merge branch '1.6.x'