-
Notifications
You must be signed in to change notification settings - Fork 10
/
tox.ini
72 lines (64 loc) · 1.62 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
[tox]
skipsdist = True
isolated_build = True
skip_missing_interpreters = True
envlist =
unit_py3_6, check
[testenv]
allowlist_externals =
/bin/bash
basepython =
{check}: python3
unit_py3_6: python3.6
unit_py3_11: python3.11
envdir =
{check}: {toxworkdir}/3
unit_py3_6: {toxworkdir}/3
unit_py3_11: {toxworkdir}/unit_py3_11
passenv =
*
usedevelop = True
deps =
-r.virtualenv.dev-requirements.txt
# Unit Test run with basepython set to 3.x
[testenv:unit_py3_6]
skip_install = True
usedevelop = True
setenv =
PYTHONPATH={toxinidir}/tests
PYTHONUNBUFFERED=yes
WITH_COVERAGE=yes
passenv =
*
deps = {[testenv]deps}
commands =
python3 setup.py develop
py.test --no-cov-on-fail \
--cov=lib/cloudregister \
--cov=usr/sbin \
--cov-report=term-missing --cov-fail-under=100 --cov-config .coveragerc
[testenv:unit_py3_11]
skip_install = True
usedevelop = True
setenv =
PYTHONPATH={toxinidir}/tests
PYTHONUNBUFFERED=yes
WITH_COVERAGE=yes
passenv =
*
deps = {[testenv]deps}
commands =
python3 setup.py develop
py.test --no-cov-on-fail --cov=lib/cloudregister \
--cov-report=term-missing --cov-fail-under=100 --cov-config .coveragerc
# Source code quality/integrity check
[testenv:check]
deps = {[testenv]deps}
skip_install = True
usedevelop = True
commands =
flake8 --statistics -j auto --count {toxinidir}/lib/cloudregister
flake8 --statistics -j auto --count {toxinidir}/usr/sbin/registercloudguest
flake8 --statistics -j auto --count \
{toxinidir}/usr/bin/cloudguestregistryauth
flake8 --statistics -j auto --count {toxinidir}/tests