app-oran-o2/tox.ini
Jackie Huang 47b3fd6a32 Introduction of the ORAN O2 application
The ORAN O2 app provides O-RAN spec compliant O2 interfaces.

This commit packages the existing O2 helm charts into
a fluxCD application

Test Plan:

Pass: oran-o2 present in /usr/local/share/applications/helm/ after CentOS ISO installation
Pass: oran-o2 present in /usr/local/share/applications/helm/ after Debian ISO installation
Pass: oran-o2 is applied on AIO-SX CentOS
Pass: oran-o2 is applied on AIO-SX Debian
Pass: oran-o2 is applied on DC AIO-DX CentOS
Pass: oran-o2 is applied with overrides on AIO-SX CentOS
Pass: oran-o2 is applied with overrides on AIO-SX Debian
Pass: oran-o2 is applied with overrides on DC Central AIO-DX CentOS

Story: 2010278
Task: 46684

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I290c12f8d0f5c02588920ef3cd3e23b1ad80b0d2
2022-11-12 16:49:24 +08:00

53 lines
1.2 KiB
INI

[tox]
envlist = linters
minversion = 2.3
skipsdist = True
sitepackages=False
[testenv]
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
OS_STDOUT_CAPTURE=1
OS_STDERR_CAPTURE=1
OS_DEBUG=1
OS_LOG_CAPTURE=1
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
whitelist_externals =
bash
passenv =
XDG_CACHE_HOME
[testenv:bashate]
# Treat all E* codes as Errors rather than warnings using: -e 'E*'
commands =
bash -c "find {toxinidir} \
-not \( -type d -name .?\* -prune \) \
-type f \
-not -name \*~ \
-not -name \*.md \
-name \*.sh \
-print0 | xargs -r -n 1 -0 bashate -v \
-e 'E*'"
[testenv:linters]
commands =
{[testenv:bashate]commands}
[testenv:flake8]
basepython = python3
description = Dummy environment to allow flake8 to be run in subdir tox
[testenv:pylint]
basepython = python3
description = Dummy environment to allow pylint to be run in subdir tox
[testenv:bandit]
basepython = python3
description = Dummy environment to allow bandit to be run in subdir tox