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
This commit is contained in:
Ivan Kolodyazhny 2018-09-12 16:22:01 -06:00
parent 9287dc8185
commit b1df65887e
1 changed files with 6 additions and 0 deletions

View File

@ -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}'