Files
sahara-image-elements/tox.ini
Luigi Toscano 0d87211d1a dib-lint: adapt the value of ELEMENTS_DIR
While previously the elements/ directory was checked, now the path
can be specified as ELEMENTS_DIR, which defaults to
diskimage_builder/elements
and which must then be overridden.

Change-Id: I0caf00adf16a0612c94956d4fce93bd69ff2183f
(cherry picked from commit 70fea75661)
2017-06-07 18:47:57 +02:00

39 lines
1013 B
INI

[tox]
envlist = pep8
minversion = 1.6
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/ocata} {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
[testenv:bashate]
whitelist_externals = bash
commands = bash -c "find {toxinidir} -not -wholename \*.tox/\* -and \( -name \*.sh -or -wholename \*.d/\* -and -not -name \*.md -and -not -name \*.rst -and -not -name \*.py \) -print0 | xargs -0 bashate -v"
[testenv:pep8]
setenv =
ELEMENTS_DIR=elements
commands =
flake8 {posargs}
{toxinidir}/tools/run_bashate.sh
dib-lint
[testenv:venv]
commands = {posargs}
passenv = *
[dib-lint]
ignore=safe_sudo
[flake8]
show-source = true
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools