-
Notifications
You must be signed in to change notification settings - Fork 21
/
tox.ini
145 lines (126 loc) · 2.8 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
[tox]
minversion = 1.6
envlist = lint,py{36,39,310}-{unit,feature,integration,cover},topy
skipsdist = False
[testenv]
basepython =
{py36-unit,py36-feature,py36-integration,py36-cover}: python3.6
{py39-unit,py39-feature,py39-integration,py39-cover}: python3.9
{py311-unit,py311-feature,py311-integration,py311-cover}: python3.11
{py312-unit,py312-feature,py312-integration,py312-cover}: python3.12
{lint,topy}: python3
# python-rpm isn't available from PyPI so we need to use site-packages
sitepackages = True
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
VIRTUALENV_NO_DOWNLOAD=1
PYTHONPATH={envsitepackagesdir}:.
passenv =
TERM
HOME
allowlist_externals =
# for some reason tox complains about behave even though it's listed as dep
behave
git
topy
{toxinidir}/tests/integration/test_integration.sh
[testenv:py36-unit]
deps =
pytest
pytest-cov
coverage
commands =
py.test --cov rdopkg {posargs}
[testenv:py39-unit]
deps =
pytest
pytest-cov
coverage
commands =
py.test --cov rdopkg {posargs}
[testenv:py311-unit]
deps =
pytest
pytest-cov
coverage
commands =
py.test --cov rdopkg {posargs}
[testenv:py312-unit]
deps =
pytest
pytest-cov
coverage
commands =
py.test --cov rdopkg {posargs}
[testenv:py36-feature]
deps =
behave
coverage
commands =
coverage run --source='rdopkg' -m behave --format=progress
[testenv:py39-feature]
deps =
behave
coverage
commands =
coverage run --source='rdopkg' -m behave --format=progress
[testenv:py311-feature]
deps =
behave
coverage
commands =
coverage run --source='rdopkg' -m behave --format=progress
[testenv:py312-feature]
deps =
behave
coverage
commands =
coverage run --source='rdopkg' -m behave --format=progress
[testenv:py36-integration]
commands = {toxinidir}/tests/integration/test_integration.sh
[testenv:py39-integration]
commands = {toxinidir}/tests/integration/test_integration.sh
[testenv:py311-integration]
commands = {toxinidir}/tests/integration/test_integration.sh
[testenv:py312-integration]
commands = {toxinidir}/tests/integration/test_integration.sh
[testenv:py36-cover]
deps = coverage
commands =
coverage combine
coverage html
[testenv:py39-cover]
deps = coverage
commands =
coverage combine
coverage html
[testenv:py311-cover]
deps = coverage
commands =
coverage combine
coverage html
[testenv:py312-cover]
deps = coverage
commands =
coverage combine
coverage html
[testenv:lint]
deps = pycodestyle
commands = python -m pycodestyle
[testenv:topy]
basepython = python3
deps = topy
commands =
topy --quiet \
doc/README \
doc/rdopkg.1.adoc \
doc/rdopkg-adv-new-version.7.adoc \
doc/rdopkg-adv-requirements.7.adoc \
README.md \
HACKING.md \
rdopkg \
tests \
features {posargs}