-
Notifications
You must be signed in to change notification settings - Fork 7
/
tox.ini
75 lines (66 loc) · 1.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
[tox]
minversion = 3.8.0
envlist = linters,unit,intr,coverage,docs
skipsdist = True
ignore_basepython_conflict = True
skip_missing_interpreters = False
requires =
tox-extra; python_version >= '3.8'
[gh-actions]
python =
3.9: py39
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
[testenv:linters]
deps =
pre-commit>=1.21.0
pylint>=2.12.0
-r {toxinidir}/requirements.txt
-r {toxinidir}/test-requirements.txt
commands =
python -m pre_commit run -a
[testenv:unit]
deps =
-r {toxinidir}/requirements.txt
-r {toxinidir}/test-requirements.txt
commands =
python -m unittest discover tests/kernel/unit
python -m unittest discover tests/tripleo/unit
python -m unittest discover tests/cibyl/unit
[testenv:intr]
deps =
-r {toxinidir}/requirements.txt
-r {toxinidir}/test-requirements.txt
commands =
python -m unittest discover tests/kernel/intr
python -m unittest discover tests/tripleo/intr
python -m unittest discover tests/cibyl/intr
[testenv:e2e]
passenv =
DOCKER_HOST
setenv=
# set timeout for e2e testing to 10 minutes
TC_MAX_TRIES = 600
deps =
-r {toxinidir}/requirements.txt
-r {toxinidir}/test-requirements.txt
commands =
python -m unittest discover tests/tripleo/e2e
python -m unittest discover tests/cibyl/e2e
[testenv:coverage]
deps =
-r {toxinidir}/requirements.txt
-r {toxinidir}/test-requirements.txt
commands =
coverage erase
coverage run -a -m unittest discover tests/kernel/unit
coverage run -a -m unittest discover tests/tripleo/unit
coverage run -a -m unittest discover tests/cibyl/unit
coverage report -m --fail-under=85
[testenv:docs]
deps =
-r{toxinidir}/docs/requirements.txt
-e.
allowlist_externals = bash
commands = bash -c 'cd docs && make clean && make html'