-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
96 lines (83 loc) · 1.67 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
[tox]
envlist =
4.3-py27,
5.1-py27,
5.2-py27
5.2-py36
5.2-py37
5.2-py38
6.0-py39
coverage
[general]
commands =
cp {toxinidir}/buildout.cfg {envdir}/buildout.cfg
sed -ie "s/test-5.x.cfg/test-{env:PLONE_VERSION}.x.cfg/" {envdir}/buildout.cfg
{envbindir}/buildout -c {envdir}/buildout.cfg buildout:directory={envdir} buildout:develop={toxinidir} install test
[testenv]
basepython = python2.7
commands =
{[general]commands}
{envbindir}/test
skip_install = true
deps =
-rrequirements.txt
allowlist_externals =
cp
sed
mkdir
[testenv:4.3-py27]
setenv =
PLONE_VERSION=4.3
[testenv:5.1-py27]
setenv =
PLONE_VERSION=5.1
[testenv:5.2-py27]
setenv =
PLONE_VERSION=5.2
[testenv:5.2-py36]
basepython = python3.6
setenv =
PLONE_VERSION=5.2
[testenv:5.2-py37]
basepython = python3.7
setenv =
PLONE_VERSION=5.2
[testenv:5.2-py38]
basepython = python3.8
setenv =
PLONE_VERSION=5.2
[testenv:6.0-py39]
basepython = python3.9
setenv =
PLONE_VERSION=6.0
[testenv:coverage]
basepython = python3.8
skip_install = true
setenv =
PLONE_VERSION=5.2
deps =
{[testenv]deps}
coverage
coverage-python-version
commands =
mkdir -p {toxinidir}/parts/htmlcov
{[general]commands}
coverage run {envdir}/bin/test {posargs:-vc}
coverage html
coverage report -m --fail-under=90
[coverage:run]
branch = True
plugins = coverage_python_version
source = src
[coverage:report]
precision = 2
exclude_lines =
pragma: no cover
pragma: nocover
except ImportError:
raise NotImplementedError
if __name__ == '__main__':
self.fail
raise AssertionError
[coverage:html]
directory = parts/htmlcov