Use Horizon project template for django jobs

Horizon defined a project template 'horizon-non-primary-django-jobs'
for django jobs. This patch use that template to run django jobs
here. For information please refer [1]

[1] https://review.opendev.org/#/c/681969/

Change-Id: Ic25ac51fb1134b06a1db148026da17239f43beed
This commit is contained in:
manchandavishal 2019-10-05 10:13:50 +00:00
parent 0e2a25d70c
commit c6a69f3d12
2 changed files with 4 additions and 19 deletions

View File

@ -1,6 +1,7 @@
- project:
templates:
- check-requirements
- horizon-non-primary-django-jobs
- horizon-nodejs10-jobs
- openstack-lower-constraints-jobs-horizon
- openstack-python-jobs-horizon
@ -12,8 +13,3 @@
voting: false
required-projects:
- openstack/horizon
- horizon-openstack-tox-python3-django111
gate:
jobs:
- horizon-openstack-tox-python3-django111

17
tox.ini
View File

@ -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,6 +16,8 @@ deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
dj111: pip install django>=1.11,<2
dj22: pip install django>=2.2,<2.3
python manage.py test {posargs} --settings=magnum_ui.test.settings
# For installation of horizon on local
@ -62,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 =