diff --git a/.zuul.yaml b/.zuul.yaml index 1940b38..c748c07 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -2,6 +2,7 @@ templates: - openstack-lower-constraints-jobs-horizon - check-requirements + - horizon-non-primary-django-jobs - horizon-nodejs10-jobs - openstack-python-jobs-horizon - publish-openstack-docs-pti @@ -12,7 +13,3 @@ voting: false required-projects: - openstack/horizon - - horizon-openstack-tox-python3-django111 - gate: - jobs: - - horizon-openstack-tox-python3-django111 diff --git a/tox.ini b/tox.ini index ecb0c57..7966cfd 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = pep8,py27-local,py3-dj111-local,eslint,karma-local,docs-local,releasenotes,lower-constraints-local +envlist = pep8,py27-local,py3-{dj111,dj22},eslint,karma-local,docs-local,releasenotes,lower-constraints-local minversion = 2.3.2 skipsdist = True @@ -16,7 +16,10 @@ deps = -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt -commands = python manage.py test {posargs} +commands = + dj111: pip install django>=1.11,<2 + dj22: pip install django>=2.2,<2.3 + python manage.py test {posargs} # For installation of horizon on local # NOTICE: this tox.ini requires horizon repository cloned in sibling directory. @@ -61,19 +64,6 @@ commands = {[testenv:hz-local]commands} {[testenv]commands} -[testenv:py3-dj111] -basepython = python3 -commands = - pip install django>=1.11,<2 - {[testenv]commands} - -[testenv:py3-dj111-local] -basepython = python3 -commands = - {[testenv:hz-local]commands} - pip install django>=1.11,<2 - {[testenv]commands} - [testenv:eslint] basepython = python3 whitelist_externals =