-
Notifications
You must be signed in to change notification settings - Fork 21
/
tox.ini
93 lines (82 loc) · 1.78 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
[tox]
minversion = 1.6
envlist = lint,py{2,3}-{unit,feature,integration,cover},topy
skipsdist = True
[testenv]
basepython =
{py2-unit,py2-feature,py2-integration,py2-cover,topy}: python2
{py3-unit,py3-feature,py3-integration,py3-cover,lint}: 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
EMAIL=test@rdopkg.tests
PYTHONPATH={envsitepackagesdir}:.
passenv =
TERM
HOME
whitelist_externals =
# for some reason tox complains about behave even though it's listed as dep
behave
git
topy
[testenv:py2-unit]
deps =
pytest
pytest-cov
coverage
commands =
py.test --cov rdopkg {posargs}
[testenv:py3-unit]
deps =
pytest
pytest-cov
coverage
commands =
py.test --cov rdopkg {posargs}
[testenv:py2-feature]
deps =
behave
coverage
commands =
coverage run --source='rdopkg' -m behave --format=progress
[testenv:py3-feature]
deps =
behave
coverage
commands =
coverage run --source='rdopkg' -m behave --format=progress
[testenv:py2-integration]
commands = {toxinidir}/tests/integration/test_integration.sh
[testenv:py3-integration]
commands = {toxinidir}/tests/integration/test_integration.sh
[testenv:py2-cover]
deps = coverage
commands =
coverage combine
coverage html
[testenv:py3-cover]
deps = coverage
commands =
coverage combine
coverage html
[testenv:lint]
deps = pycodestyle
commands = python -m pycodestyle
[testenv:topy]
basepython = python2
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}