Add environment variable

Add environment variable {toxinidir} in tox.ini

Change-Id: Idc8d98d5d88afc887f83c7d1bc7bd36a9b8b72fe
This commit is contained in:
ZhongShengping 2017-06-12 16:16:51 +08:00
parent 12aed91f42
commit a828faff0a

View File

@ -7,5 +7,5 @@ envlist = releasenotes
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
[testenv:releasenotes] [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 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html