Merge branch 'master' into 'master'
[mailman.git] / tox.ini
blob18a2f6bf216f5df85241b28d33f95688843e57f7
1 [tox]
2 envlist = {py35,py36,py37}-{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
15 diffcov: diff-cover coverage.xml --fail-under=100
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
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:
48 sphinx
49 docutils==0.12
51 [coverage]
52 rcfile = {toxinidir}/coverage.ini
53 rc = --rcfile={[coverage]rcfile}
55 [flake8]
56 enable-extensions = U4
57 exclude = src/mailman/compat/*.py
58 hang-closing = True
59 jobs = 1
60 max-line-length = 79