Don't remove held message from store if there are other requests for it.
[mailman.git] / tox.ini
blob4fb842a3944931aeab18e20de20817f6b9da3835
1 [tox]
2 envlist = {py36,py37,py38,py39}-{nocov,cov,diffcov}{,-mysql,-pg},qa
3 #recreate = True
4 skip_missing_interpreters = True
6 [testenv]
7 commands =
8 nocov: python -m nose2 -v {posargs}
9 cov,diffcov: python -m coverage run {[coverage]rc} -m nose2 {posargs}
10 cov,diffcov: python -m coverage combine {[coverage]rc}
11 cov: python -m coverage html {[coverage]rc}
12 cov: python -m coverage report -m {[coverage]rc} --fail-under=93
13 diffcov: python -m coverage xml {[coverage]rc}
14 diffcov: diff-cover coverage.xml --html-report diffcov.html --compare-branch origin/master
15 diffcov: diff-cover coverage.xml --fail-under=100 --compare-branch origin/master
16 #sitepackages = True
17 usedevelop = True
18 deps =
19 flufl.testing>=0.8
20 nose2
21 cov,diffcov: coverage
22 pg: psycopg2-binary
23 mysql: pymysql
24 diffcov: diff_cover>=6.0
25 passenv =
26 MAILMAN_*
27 PYTHON*
28 LANG*
29 LC_*
30 setenv =
31 cov: COVERAGE_PROCESS_START={[coverage]rcfile}
32 cov: COVERAGE_OPTIONS="-p"
33 cov: COVERAGE_FILE={toxinidir}/.coverage
35 [testenv:qa]
36 basepython = python3
37 commands =
38 python -m flake8 src
39 deps =
40 flake8>3.0
41 flufl.testing
43 [testenv:docs]
44 basepython = python3
45 commands =
46 python setup.py build_sphinx
47 deps: -rrequirements-docs.txt
49 [coverage]
50 rcfile = {toxinidir}/coverage.ini
51 rc = --rcfile={[coverage]rcfile}
53 [flake8]
54 enable-extensions = U4
55 exclude = src/mailman/compat/*.py
56 hang-closing = True
57 jobs = 1
58 max-line-length = 79