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: I186bb5edfaece73222534fbede928f0903595b04
This commit is contained in:
manchandavishal 2019-11-20 12:25:13 +00:00
parent 226f2d8bd5
commit 1b1ee9e7e2
2 changed files with 4 additions and 12 deletions

View File

@ -1,12 +1,7 @@
- project:
templates:
- check-requirements
- horizon-non-primary-django-jobs
- openstack-lower-constraints-jobs-horizon
- openstack-python3-ussuri-jobs-horizon
- publish-openstack-docs-pti
check:
jobs:
- horizon-openstack-tox-python3-django111
gate:
jobs:
- horizon-openstack-tox-python3-django111

View File

@ -1,5 +1,5 @@
[tox]
envlist = py37,pep8,docs
envlist = py37,py3-{dj111,dj22},pep8,docs
minversion = 3.1.1
skipsdist = True
ignore_basepython_conflict = True
@ -16,6 +16,8 @@ deps =
https://tarballs.openstack.org/horizon/horizon-master.tar.gz
https://tarballs.openstack.org/python-tackerclient/python-tackerclient-master.tar.gz
commands =
dj111: pip install django>=1.11,<2
dj22: pip install django>=2.2,<2.3
{envpython} {toxinidir}/manage.py test tacker_horizon --settings=tacker_horizon.test.settings {posargs}
[testenv:py36]
@ -70,8 +72,3 @@ deps =
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
[testenv:py3-dj111]
basepython = python3
commands =
pip install django>=1.11,<2
{[testenv]commands}