Add environment variable

Add environment variable {toxinidir} in tox.ini

Change-Id: I7645f1887d7e38b29edf749d768135957b74a296
This commit is contained in:
ZhongShengping 2017-06-12 15:50:26 +08:00
parent bc90232179
commit 0a2d0f0133

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