diff options
author | Akihiro Motoki <amotoki@gmail.com> | 2020-06-24 17:33:06 +0900 |
---|---|---|
committer | Akihiro Motoki <amotoki@gmail.com> | 2020-06-24 17:33:06 +0900 |
commit | ef1270167b1a35c19cee1009a3d07485d2681e8e (patch) | |
tree | edee8571a64da9ddd468e77362c004b636d95f84 /.zuul.d/django-jobs.yaml | |
parent | 827365753886025dc62fbfbed179ef719d313711 (diff) | |
download | horizon-ef1270167b1a35c19cee1009a3d07485d2681e8e.tar.gz |
zuul: break down config files into pieces
Our .zuul.yaml is long enough now. Let's split it into meaningful
pieces for better readability.
Change-Id: I53daefd95946d19d8f4f5845f0e83bf652c3a9aa
Diffstat (limited to '.zuul.d/django-jobs.yaml')
-rw-r--r-- | .zuul.d/django-jobs.yaml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/.zuul.d/django-jobs.yaml b/.zuul.d/django-jobs.yaml new file mode 100644 index 000000000..46391ba74 --- /dev/null +++ b/.zuul.d/django-jobs.yaml @@ -0,0 +1,46 @@ +- job: + name: horizon-tox-python3-django + abstract: true + parent: horizon-openstack-tox-base + description: | + Run tox with different Django version. + + .. zuul:jobvar: tox_envlist + + Which tox environment to run + + .. zuul:jobvar: django_version + + Django version to be used. + pip version specifier like ``>=1.11,<2.0`` should be passed. + + pre-run: playbooks/horizon-tox-django/pre.yaml + run: playbooks/horizon-tox-django/run.yaml + vars: + tox_envlist: py36 + required-projects: + - name: openstack/horizon + +- job: + name: horizon-tox-python3-django22 + parent: horizon-tox-python3-django + vars: + django_version: '>=2.2,<3.0' + +- project-template: + name: horizon-non-primary-django-jobs + description: | + Run unit tests with non-primary Django versions. + check: + jobs: + # Currently we only support Django 2.2, so there is no need + # to run tests with different versions of Django. + # We specify a job in openstack-python3-victoria-jobs(-horizon) + # to keep this project template as it is used in horizon plugins. + - openstack-tox-py38 + # NOTE: We keep it as a template even though it is not used now. + # - horizon-tox-python3-django22 + gate: + jobs: + - openstack-tox-py38 + # - horizon-tox-python3-django22 |