From 81188f49a2e728220f03e8f7395c46f483d01405 Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Mon, 12 Jun 2017 15:58:23 +0800 Subject: [PATCH] Add environment variable Add environment variable {toxinidir} in tox.ini Change-Id: I01c77140f030a68cfb3ce30f4e282ba5d0563500 --- tox.ini | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index aea06c84..f5de0274 100644 --- a/tox.ini +++ b/tox.ini @@ -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