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: I4d312087fdf00d297f5bf1fdef0bd234f8543651
This commit is contained in:
manchandavishal 2019-10-05 09:55:21 +00:00 committed by Vishal Manchanda
parent 479ac9e1c5
commit bf677445a9
2 changed files with 6 additions and 12 deletions

View File

@ -1,6 +1,7 @@
- project:
templates:
- check-requirements
- horizon-non-primary-django-jobs
- nodejs4-jobs
- openstack-cover-jobs-horizon
- openstack-lower-constraints-jobs
@ -10,10 +11,6 @@
check:
jobs:
- murano-dashboard-sanity-check
- horizon-openstack-tox-python3-django111
gate:
jobs:
- horizon-openstack-tox-python3-django111
- job:
name: murano-dashboard-sanity-check

13
tox.ini
View File

@ -1,5 +1,5 @@
[tox]
envlist = py37,py27,pep8
envlist = py37,py27,py3-{dj111,dj22},pep8
minversion = 2.0
skipsdist = True
@ -12,7 +12,10 @@ deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
http://tarballs.openstack.org/heat-dashboard/heat-dashboard-master.tar.gz
commands = {toxinidir}/manage.py test muranodashboard --settings=muranodashboard.tests.settings
commands =
dj111: pip install django>=1.11,<2
dj22: pip install django>=2.2,<2.3
{toxinidir}/manage.py test muranodashboard --settings=muranodashboard.tests.settings
[testenv:pep8]
basepython = python3
@ -77,9 +80,3 @@ deps =
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
http://tarballs.openstack.org/heat-dashboard/heat-dashboard-master.tar.gz
[testenv:py3-dj111]
basepython = python3
commands =
pip install django>=1.11,<2
{[testenv]commands}