Add environment variable

Add environment variable {toxinidir} in tox.ini

Change-Id: I01c77140f030a68cfb3ce30f4e282ba5d0563500
This commit is contained in:
ZhongShengping 2017-06-12 15:58:23 +08:00
parent 754429db4b
commit 81188f49a2

View File

@ -3,6 +3,9 @@ minversion = 1.6
skipsdist = True
envlist = releasenotes
[testenv]
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
[testenv:releasenotes]
deps = -rtest-requirements.txt
deps = -r{toxinidir}/test-requirements.txt
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html