Use upper constraints for all jobs in tox.ini
Openstack infra now supports upper constraints for all jobs. Updated tox.ini to use upper constraints for all jobs. Change-Id: Idc8c6cb9b0fa3b547bd78638394fdf1687827e33 Closes-Bug: #1614117
This commit is contained in:
parent
0b6c46be6d
commit
f98463852b
19
tox.ini
19
tox.ini
|
@ -93,10 +93,6 @@ commands =
|
||||||
bandit -r magnum -x tests -n5 -ll
|
bandit -r magnum -x tests -n5 -ll
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
# NOTE(jaegerandi): This target does not use constraints because
|
|
||||||
# upstream infra does not yet support it. Once that's fixed, we can
|
|
||||||
# drop the install_command.
|
|
||||||
install_command = pip install -U --force-reinstall {opts} {packages}
|
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[testenv:bandit]
|
[testenv:bandit]
|
||||||
|
@ -104,17 +100,10 @@ deps = -r{toxinidir}/test-requirements.txt
|
||||||
commands = bandit -r magnum -x tests -n5 -ll
|
commands = bandit -r magnum -x tests -n5 -ll
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
# NOTE(NiallBunting) Infra does not support constraints for the cover
|
|
||||||
# job. While the file is set no file is there. Can be removed once infra
|
|
||||||
# changes this.
|
|
||||||
install_command = pip install -U {opts} {packages}
|
|
||||||
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
||||||
coverage report
|
coverage report
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
# NOTE(NiallBunting) This is a post job. So upper constraints will not
|
|
||||||
# apply here.
|
|
||||||
install_command = pip install -U {opts} {packages}
|
|
||||||
commands =
|
commands =
|
||||||
doc8 -e .rst specs/ doc/source/ contrib/ CONTRIBUTING.rst HACKING.rst README.rst
|
doc8 -e .rst specs/ doc/source/ contrib/ CONTRIBUTING.rst HACKING.rst README.rst
|
||||||
python setup.py build_sphinx
|
python setup.py build_sphinx
|
||||||
|
@ -139,17 +128,9 @@ deps = pip_missing_reqs
|
||||||
commands=pip-missing-reqs -d --ignore-file=magnum/tests/* magnum
|
commands=pip-missing-reqs -d --ignore-file=magnum/tests/* magnum
|
||||||
|
|
||||||
[testenv:releasenotes]
|
[testenv:releasenotes]
|
||||||
# NOTE(sdague): this target does not use constraints because
|
|
||||||
# upstream infra does not yet support it. Once that's fixed, we can
|
|
||||||
# drop the install_command.
|
|
||||||
install_command = pip install -U --force-reinstall {opts} {packages}
|
|
||||||
commands =
|
commands =
|
||||||
rm -rf releasenotes/build
|
rm -rf releasenotes/build
|
||||||
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
||||||
|
|
||||||
[testenv:install-guide]
|
[testenv:install-guide]
|
||||||
# NOTE(jaegerandi): this target does not use constraints because
|
|
||||||
# upstream infra does not yet support it. Once that's fixed, we can
|
|
||||||
# drop the install_command.
|
|
||||||
install_command = pip install -U --force-reinstall {opts} {packages}
|
|
||||||
commands = sphinx-build -a -E -W -d install-guide/build/doctrees -b html install-guide/source install-guide/build/html
|
commands = sphinx-build -a -E -W -d install-guide/build/doctrees -b html install-guide/source install-guide/build/html
|
||||||
|
|
Loading…
Reference in New Issue