Use upper-constraints for all tox targets
The issue has been resolved by infra [0], so we can use upper constraints for all targets. [0] http://lists.openstack.org/pipermail/openstack-dev/2016-August/101474.html Change-Id: I5c0378bdc6ddb4f8d0a328f3e61092be6cd579ac
This commit is contained in:
parent
2b75314d20
commit
6e775b82f4
22
tox.ini
22
tox.ini
@ -35,12 +35,6 @@ commands =
|
|||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
LANGUAGE=en_US
|
LANGUAGE=en_US
|
||||||
# NOTE(amrith) The setting of the install_command in this location
|
|
||||||
# is only required because currently infra does not actually
|
|
||||||
# support constraints files for the cover job, and while
|
|
||||||
# the environment variable UPPER_CONSTRAINTS_FILE is set, there's
|
|
||||||
# no file there. It can be removed when infra changes this.
|
|
||||||
install_command = pip install -U {opts} {packages}
|
|
||||||
commands =
|
commands =
|
||||||
coverage erase
|
coverage erase
|
||||||
python setup.py testr --coverage --omit='*test*' --testr-args='{posargs}'
|
python setup.py testr --coverage --omit='*test*' --testr-args='{posargs}'
|
||||||
@ -77,32 +71,16 @@ commands =
|
|||||||
[testenv:api-ref]
|
[testenv:api-ref]
|
||||||
# This environment is called from CI scripts to test and publish
|
# This environment is called from CI scripts to test and publish
|
||||||
# the API Ref to developer.openstack.org.
|
# the API Ref to developer.openstack.org.
|
||||||
# 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.
|
|
||||||
whitelist_externals = bash
|
whitelist_externals = bash
|
||||||
install_command = pip install -U --force-reinstall {opts} {packages}
|
|
||||||
commands =
|
commands =
|
||||||
bash -c 'rm -rf api-ref/build'
|
bash -c 'rm -rf api-ref/build'
|
||||||
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
|
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
|
||||||
|
|
||||||
[testenv:releasenotes]
|
[testenv:releasenotes]
|
||||||
# NOTE(amrith) The setting of the install_command in this location
|
|
||||||
# is only required because currently infra does not actually
|
|
||||||
# support constraints files for the releasenotes job, and while
|
|
||||||
# the environment variable UPPER_CONSTRAINTS_FILE is set, there's
|
|
||||||
# no file there. It can be removed when infra changes this.
|
|
||||||
install_command = pip install -U {opts} {packages}
|
|
||||||
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
setenv = PYTHONHASHSEED=0
|
setenv = PYTHONHASHSEED=0
|
||||||
# NOTE(amrith) The setting of the install_command in this location
|
|
||||||
# is only required because currently infra does not actually
|
|
||||||
# support constraints files for the docs job, and while
|
|
||||||
# the environment variable UPPER_CONSTRAINTS_FILE is set, there's
|
|
||||||
# no file there. It can be removed when infra changes this.
|
|
||||||
install_command = pip install -U {opts} {packages}
|
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user