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:
parent
3fecceb682
commit
923acdb53d
16
tox.ini
16
tox.ini
|
@ -1,5 +1,5 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist = pep8,py35,py27,py27dj18
|
envlist = pep8,py35,py27,py35dj20
|
||||||
minversion = 2.3.2
|
minversion = 2.3.2
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
|
|
||||||
|
@ -29,12 +29,16 @@ commands =
|
||||||
coverage xml --omit '.tox/cover/*' -o 'cover/coverage.xml'
|
coverage xml --omit '.tox/cover/*' -o 'cover/coverage.xml'
|
||||||
coverage html --omit '.tox/cover/*' -d 'cover/htmlcov'
|
coverage html --omit '.tox/cover/*' -d 'cover/htmlcov'
|
||||||
|
|
||||||
# Django-1.8 is LTS
|
[testenv:py35dj20]
|
||||||
[testenv:py27dj18]
|
basepython = python3.5
|
||||||
basepython = python2.7
|
whitelist_externals = git
|
||||||
commands =
|
commands =
|
||||||
pip install django>=1.8,<1.9
|
# NOTE(shu-mutow): To test this new env, need to re-install recent horizon
|
||||||
python manage.py test {posargs} --settings=magnum_ui.test.settings
|
# 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]
|
[testenv:eslint]
|
||||||
whitelist_externals = npm
|
whitelist_externals = npm
|
||||||
|
|
Loading…
Reference in New Issue