From b1df65887e710f7500bbe64f52a69a70d438462b Mon Sep 17 00:00:00 2001 From: Ivan Kolodyazhny Date: Wed, 12 Sep 2018 16:22:01 -0600 Subject: [PATCH] Add ability to test Ironic UI with Horizon master branch For the developers needs it's useful to be able run tests with the latest Horizon version from the master branch. This patch introduces new tox environment py3-dev to run tests with the Horizon master branch. By default, Horizon will be installed from the master branch of it's git repository. You can override this behaviour by setting HORIZON_REPO environment variable to test the plugin with your local copy. Change-Id: Ie4cda52398dcf97e3e1544052f82c4b5692d2dad --- tox.ini | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tox.ini b/tox.ini index fa2a2da1..57bcd788 100644 --- a/tox.ini +++ b/tox.ini @@ -25,6 +25,12 @@ commands = flake8 {posargs} basepython = python3 commands = {posargs} +[testenv:py3-dev] +basepython = python3 +commands = + pip install {env:HORIZON_REPO:git+git://git.openstack.org/openstack/horizon} + {[testenv]commands} + [testenv:cover] basepython = python3 commands = python setup.py test --coverage --testr-args='{posargs}'