055e687635
Add the ELEMENTS_DIR environment variable to configure dib-lint to check our 'elements' directory. Change-Id: I7eb65e704914637d993ec3aefb84bbbe5812df78 Depends-On: Iae1dade1e20a950e63ffe8dacfea0f23cf9923a0 Closes-Bug: #1672730
51 lines
1.4 KiB
INI
51 lines
1.4 KiB
INI
[tox]
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
envlist = py{35,27},pep8
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|
|
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:pep8]
|
|
deps = bashate
|
|
flake8
|
|
diskimage-builder
|
|
whitelist_externals =
|
|
bash
|
|
commands =
|
|
flake8
|
|
bash -c "find scripts -type f | xargs bashate -v -iE006"
|
|
dib-lint
|
|
setenv = ELEMENTS_DIR=elements
|
|
|
|
[testenv:cover]
|
|
commands = python setup.py test --coverage --coverage-package-name=instack_undercloud --testr-args='{posargs}'
|
|
|
|
[flake8]
|
|
show-source = True
|
|
# puppet-stack-config horribly violates E501 (line length), but I'm not
|
|
# bothered enough to spend the time to fix it.
|
|
exclude = .tox,dist,doc,*.egg,build,elements/puppet-stack-config/install.d/02-puppet-stack-config,releasenotes
|
|
|
|
[dib-lint]
|
|
# NOTE(bnemec): I mostly want the executable check from dib-lint, so at least
|
|
# for the moment I'm ignoring any failures that would require more than simple
|
|
# reformatting of files.
|
|
ignore = dibdebugtrace sete setu setpipefail mddocs
|
|
|
|
[testenv:genconfig]
|
|
commands = oslo-config-generator --config-file config-generator/undercloud.conf
|
|
|
|
[testenv:releasenotes]
|
|
commands = bash -c tools/releasenotes_tox.sh
|