40 lines
1.3 KiB
INI
40 lines
1.3 KiB
INI
[tox]
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
|
|
[testenv:bindep]
|
|
# Do not install any requirements. We want this to be fast and work even if
|
|
# system dependencies are missing, since it's used to tell you what system
|
|
# dependencies are missing! This also means that bindep must be installed
|
|
# separately, outside of the requirements files.
|
|
deps = bindep
|
|
commands = bindep test
|
|
|
|
[testenv:shellcheck]
|
|
# 'shellcheck' is not an Python package, so it can be run w\o
|
|
# virtual env. But tox is a usable wrapper to run any kind of tests -
|
|
# let's use it for common test-run as well - for unification purposes.
|
|
whitelist_externals = shellcheck
|
|
commands = {toxinidir}/tools/jenkins/shellcheck.sh {toxinidir}
|
|
|
|
[testenv:yaml-syntaxcheck]
|
|
deps = yamllint
|
|
commands = {toxinidir}/tools/jenkins/yamllint.sh {toxinidir}
|
|
|
|
[testenv:linters]
|
|
# linters env - it's a combination of check's (usually syntax)
|
|
# for aggregate non-destructive run's. Used only in openstack-infra ci for
|
|
# decrease resource usage.
|
|
# Current duplicate list:
|
|
# shellcheck
|
|
# yaml-syntaxcheck
|
|
#
|
|
# We need to suppress exit code from 'command1', to be able run 'command2';
|
|
# Otherwise, if some command failed - exit code from tox itself will be 1
|
|
ignore_errors=True
|
|
deps = yamllint
|
|
whitelist_externals = shellcheck
|
|
commands =
|
|
{toxinidir}/tools/jenkins/shellcheck.sh {toxinidir}
|
|
{toxinidir}/tools/jenkins/yamllint.sh {toxinidir}
|