Constrain remaining tox targets
As per [1], we now can constrain targets that are executed in post queue too. [1] http://lists.openstack.org/pipermail/openstack-dev/2016-August/101474.html Change-Id: I02b28d3b354c3b175147c5be36eea4dc7e05f2a3
This commit is contained in:
parent
c0cd796901
commit
ed3a508e2b
|
@ -19,14 +19,9 @@ neutron_installed=$(echo "import neutron" | python 2>/dev/null ; echo $?)
|
|||
|
||||
set -e
|
||||
|
||||
CONSTRAINTS_FILE=$1
|
||||
install_cmd="pip install -c$1"
|
||||
shift
|
||||
|
||||
install_cmd="pip install"
|
||||
if [ $CONSTRAINTS_FILE != "unconstrained" ]; then
|
||||
install_cmd="$install_cmd -c$CONSTRAINTS_FILE"
|
||||
fi
|
||||
|
||||
if [ $neutron_installed -eq 0 ]; then
|
||||
echo "ALREADY INSTALLED" > /tmp/tox_install.txt
|
||||
echo "Neutron already installed; using existing package"
|
||||
|
|
6
tox.ini
6
tox.ini
|
@ -17,8 +17,6 @@ commands =
|
|||
# mode. To do this define the TRACE_FAILONLY environmental variable.
|
||||
|
||||
[testenv:releasenotes]
|
||||
# TODO(ihrachys): remove once infra supports constraints for this target
|
||||
install_command = {toxinidir}/tools/tox_install.sh unconstrained {opts} {packages}
|
||||
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
||||
|
||||
[testenv:pep8]
|
||||
|
@ -30,15 +28,11 @@ commands =
|
|||
whitelist_externals = sh
|
||||
|
||||
[testenv:cover]
|
||||
# TODO(ihrachys): remove once infra supports constraints for this target
|
||||
install_command = {toxinidir}/tools/tox_install.sh unconstrained {opts} {packages}
|
||||
commands =
|
||||
python setup.py test --coverage --coverage-package-name=neutron_lbaas --testr-args='{posargs}'
|
||||
coverage report
|
||||
|
||||
[testenv:venv]
|
||||
# TODO(ihrachys): remove once infra supports constraints for this target
|
||||
install_command = pip install -U {opts} {packages}
|
||||
commands = {posargs}
|
||||
|
||||
[testenv:docs]
|
||||
|
|
Loading…
Reference in New Issue