From 89f35182da4dd9a2035c6dce6d3858e21ab44d12 Mon Sep 17 00:00:00 2001 From: Shu Muto Date: Thu, 29 Mar 2018 16:20:45 +0900 Subject: [PATCH] Install horizon from git for tox testenv py35dj20 The testenv py35dj20 needs to install horizon from git master branch. This patch installs horizon from git like CI infra does. Change-Id: If9a884fc2d850b38814650b8d389d18caed1de49 --- tox.ini | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index b06e60f..b9a1da3 100644 --- a/tox.ini +++ b/tox.ini @@ -33,9 +33,14 @@ commands = [testenv:py35dj20] basepython = python3.5 +whitelist_externals = git commands = - pip install django>=2.0,<2.1 - python manage.py test {posargs} + # NOTE(shu-mutow): To test this new env, need to re-install recent horizon + # from git master branch like CI infra does. + git clone https://git.openstack.org/openstack/horizon.git .tox/py35dj20/src/horizon + pip install -U -t .tox/py35dj20/lib/python3.5/site-packages/ .tox/py35dj20/src/horizon + pip install django>=2.0,<2.1 + python manage.py test {posargs} [testenv:eslint] whitelist_externals = npm