The new stable upper-constraints file is only available after the openstack/requirements repository is branched. This will happen around the RC1 timeframe. Recheck and merge this change once the requirements repository has been branched. The CI system will work with this patch before the requirements repository is branched because zuul configues the job to run with a local copy of the file and defaults to the master branch. However, accepting the patch will break the test configuration on developers' local systems, so please wait until after the requirements repository is branched to merge the patch. Change-Id: I3f7570a835e35916916a36f5cd051ce44df19cf0
73 lines
1.9 KiB
INI
73 lines
1.9 KiB
INI
[tox]
|
|
minversion = 2.0
|
|
skipsdist = True
|
|
envlist = py35,py27,pep8
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
LANG=en_US.UTF-8
|
|
LANGUAGE=en_US:en
|
|
LC_ALL=C
|
|
deps =
|
|
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/rocky}
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|
|
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:venv]
|
|
basepython = python3
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
basepython = python3
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:pep8]
|
|
basepython = python3
|
|
deps = bashate
|
|
flake8
|
|
diskimage-builder
|
|
whitelist_externals =
|
|
bash
|
|
commands =
|
|
flake8
|
|
bash -c "find scripts -type f | xargs bashate -v -iE006"
|
|
dib-lint
|
|
setenv =
|
|
{[testenv]setenv}
|
|
ELEMENTS_DIR=elements
|
|
|
|
[testenv:cover]
|
|
basepython = python3
|
|
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]
|
|
basepython = python3
|
|
commands = oslo-config-generator --config-file config-generator/undercloud.conf
|
|
|
|
[testenv:releasenotes]
|
|
basepython = python3
|
|
commands = bash -c tools/releasenotes_tox.sh
|
|
|
|
[testenv:lower-constraints]
|
|
basepython = python3
|
|
deps =
|
|
-c{toxinidir}/lower-constraints.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|