-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathtox.ini
44 lines (40 loc) · 1017 Bytes
/
tox.ini
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
[tox]
envlist =
py34,py35,py36,py37,py38,py39,pypy3,
py39-pyramid{110,20}
docs,
coverage
[testenv]
# Most of these are defaults but if you specify any you can't fall back
# to defaults for others.
basepython =
py34: python3.4
py35: python3.5
py36: python3.6
py37: python3.7
py38: python3.8
py39: python3.9
pypy3: pypy3
deps =
pyramid110: pyramid <= 1.10.99
pyramid20: pyramid <= 2.0.99
commands =
pip install -q pyramid_mailer[testing]
nosetests --with-xunit --xunit-file=nosetests-{envname}.xml {posargs:}
[testenv:coverage]
basepython = python3.9
commands =
pip install -q pyramid_mailer[testing]
coverage run --source=pyramid_mailer {envbindir}/nosetests
coverage xml
coverage report --show-missing --fail-under=100
deps =
coverage
setenv =
COVERAGE_FILE=.coverage
[testenv:docs]
basepython = python3.9
whitelist_externals = make
commands =
pip install -q pyramid_mailer[docs]
make -C docs html epub BUILDDIR={envdir}