forked from canonical/hotsos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
40 lines (34 loc) · 1004 Bytes
/
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
[tox]
skipsdist = True
envlist = py3,pep8,pylint,bashate,functional
sitepackages = False
[gh-actions]
python =
3.6: py3
3.8: py3, pep8, pylint
3.9: py3
[testenv]
unit_tests = {toxinidir}/tests/unit/
pyfiles =
{toxinidir}/setup.py
{toxinidir}/hotsos/
{[testenv]unit_tests}
setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0
TERM=linux
TESTS_DIR={[testenv]unit_tests}
install_command =
pip install {opts} {packages}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
basepython = python3
commands = stestr run --serial --test-path {[testenv]unit_tests} {posargs}
[testenv:pep8]
commands = flake8 -v --exclude=fake_data_root {posargs:{[testenv]pyfiles}}
[testenv:pylint]
commands = pylint -v --rcfile={toxinidir}/pylintrc {posargs:{[testenv]pyfiles}}
[testenv:bashate]
commands = bashate --verbose {toxinidir}/build.sh {toxinidir}/tools/test/functest.sh
[testenv:functional]
commands = {toxinidir}/tools/test/functest.sh