9f4bbb93d4
API Request and Response Information added to the Code Repository. Modified tox and Zuul to build the doc html pages. Added docs for the following APIs: 1. /metrics 2. /metrics/device/{device_name} 3. /metrics/pci-addr/{pci_addr} Story: 2010918 Task: 50889 Change-Id: I720cbabc37b07314ef9fa74f0d39942373e6aec8 Signed-off-by: Aman Pandae <AmanPandae.Mothukuri@windriver.com> Signed-off-by: AbhishekJ <abhishek.jaiswal@windriver.com>
64 lines
1.7 KiB
INI
64 lines
1.7 KiB
INI
[tox]
|
|
envlist = linters
|
|
minversion = 2.9
|
|
skipsdist = True
|
|
sitepackages=False
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
install_command = pip install -U \
|
|
{opts} {packages} \
|
|
-c{env:TOX_CONSTRAINTS_FILE:https://opendev.org/starlingx/root/raw/branch/master/build-tools/requirements/debian/upper-constraints.txt}
|
|
|
|
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
|
|
allowlist_externals =
|
|
bash
|
|
rm
|
|
[testenv:linters]
|
|
commands =
|
|
{[testenv:bashate]commands}
|
|
|
|
[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: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:metadata]
|
|
basepython = python3
|
|
description = Dummy environment to allow sysinv-app to be run in subdir tox
|
|
|
|
[testenv:bandit]
|
|
basepython = python3
|
|
description = Dummy environment to allow bandit to be run in subdir tox
|
|
|
|
[testenv:api-ref]
|
|
basepython = python3
|
|
install_command = pip install -U {opts} {packages}
|
|
deps = -r {toxinidir}/api-ref/requirements.txt
|
|
commands =
|
|
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
|
|
|