blob: 60df374ab97bda6753f7a5e87e7b795cf3004517 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
[tox]
envlist = {py34,py35,py36}-{nocov,cov,diffcov}{,-mysql,-pg},qa
#recreate = True
skip_missing_interpreters = True
[testenv]
commands =
nocov: python -m nose2 -v {posargs}
cov,diffcov: python -m coverage run {[coverage]rc} -m nose2 {posargs}
cov,diffcov: python -m coverage combine {[coverage]rc}
cov: python -m coverage html {[coverage]rc}
cov: python -m coverage report -m {[coverage]rc} --fail-under=93
diffcov: python -m coverage xml {[coverage]rc}
diffcov: diff-cover coverage.xml --html-report diffcov.html
diffcov: diff-cover coverage.xml --fail-under=100
#sitepackages = True
usedevelop = True
deps =
flufl.testing
nose2
cov,diffcov: coverage
pg: psycopg2
mysql: pymysql
diffcov: diff_cover
passenv =
MAILMAN_*
PYTHON*
setenv =
cov: COVERAGE_PROCESS_START={[coverage]rcfile}
cov: COVERAGE_OPTIONS="-p"
cov: COVERAGE_FILE={toxinidir}/.coverage
[testenv:qa]
basepython = python3
commands =
python -m flake8 src
deps =
flake8>3.0
flufl.testing
[testenv:docs]
basepython = python3
commands =
python setup.py build_sphinx
deps:
sphinx
docutils==0.12
[coverage]
rcfile = {toxinidir}/coverage.ini
rc = --rcfile={[coverage]rcfile}
[flake8]
enable-extensions = U4
exclude = src/mailman/compat/*.py
hang-closing = True
jobs = 1
max-line-length = 79
|