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: I76a3247fb6902943211ecbc2938ad0413ffc0449
This commit is contained in:
manchandavishal 2019-10-05 09:55:21 +00:00
parent d24f2c9b69
commit 970880786c
2 changed files with 4 additions and 21 deletions

View File

@ -1,14 +1,8 @@
- project:
templates:
- check-requirements
- horizon-non-primary-django-jobs
- openstack-python-jobs-horizon
- openstack-python3-train-jobs-horizon
- publish-openstack-docs-pti
- release-notes-jobs-python3
check:
jobs:
- horizon-openstack-tox-python3-django111
gate:
jobs:
- horizon-openstack-tox-python3-django111

17
tox.ini
View File

@ -1,5 +1,5 @@
[tox]
envlist = py27,py37,py3-dj111,pep8,docs
envlist = py27,py37,py3-{dj111,dj22},pep8,docs
minversion = 2.3.2
skipsdist = True
@ -18,10 +18,8 @@ deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
py27: {[unit_tests]commands}
[unit_tests]
commands =
dj111: pip install django>=1.11,<2
dj22: pip install django>=2.2,<2.3
pip install -r requirements.txt
python manage.py test qinling_dashboard.test --settings=qinling_dashboard.test.settings
@ -38,15 +36,6 @@ commands =
coverage xml
coverage html
[testenv:py27]
basepython = python2
commands = {[unit_tests]commands}
[testenv:py3-dj111]
commands =
pip install django>=1.11,<2
{[unit_tests]commands}
[testenv:docs]
deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt