platform-armada-app/tox.ini
Robert Church 086a81deea Enable Zuul tox jobs for platform plugin validation
NOTE: As part of enabling this, --use-deprecated legacy-resolver was
required. This is a result of a new version of pip installed on Dec 3,
2020. A followup commit is required to remove this a deal with the
fallout.

Change-Id: I29d9484f1f3ffbb7b949c5d4177f95e7a60a99f4
Story: 2008162
Task: 41347
Related-Bug: #1907125
Signed-off-by: Robert Church <robert.church@windriver.com>
2020-12-15 16:42:40 +00:00

48 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
[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