Drop testenvs using django<=1.10 from tox

Django 1.11 is latest LTS and horizon team drops django<=1.10
from testenvs and requirements. So we drop them.
Instead add py35dj20 testenv for future support.

Change-Id: I2215be8a28f8bc180aeac093418fdb90f9272fdd
This commit is contained in:
Shu Muto 2018-03-29 15:41:06 +09:00 committed by Shu Muto
parent 3fecceb682
commit 923acdb53d
1 changed files with 10 additions and 6 deletions

16
tox.ini
View File

@ -1,5 +1,5 @@
[tox]
envlist = pep8,py35,py27,py27dj18
envlist = pep8,py35,py27,py35dj20
minversion = 2.3.2
skipsdist = True
@ -29,12 +29,16 @@ commands =
coverage xml --omit '.tox/cover/*' -o 'cover/coverage.xml'
coverage html --omit '.tox/cover/*' -d 'cover/htmlcov'
# Django-1.8 is LTS
[testenv:py27dj18]
basepython = python2.7
[testenv:py35dj20]
basepython = python3.5
whitelist_externals = git
commands =
pip install django>=1.8,<1.9
python manage.py test {posargs} --settings=magnum_ui.test.settings
# 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} --settings=magnum_ui.test.settings
[testenv:eslint]
whitelist_externals = npm