From 7e761e58d06813b6ca4822fd31bca14d645d1cac Mon Sep 17 00:00:00 2001 From: Ivan Kolodyazhny Date: Sun, 23 Sep 2018 14:16:51 +0300 Subject: [PATCH] Add cross-horizon-npm Horizon npm job depends on XStatic-* packages. Any breakig changes to XStatic-* packages will be found only by npm tests. Change-Id: I29a17c8a0ec857d3f1692440be052da83a7e0bdf --- .zuul.d/cross-jobs.yaml | 29 +++++++++++++++++++++++++++++ .zuul.d/project.yaml | 2 ++ 2 files changed, 31 insertions(+) diff --git a/.zuul.d/cross-jobs.yaml b/.zuul.d/cross-jobs.yaml index b75f90a578..360b1dcbcb 100644 --- a/.zuul.d/cross-jobs.yaml +++ b/.zuul.d/cross-jobs.yaml @@ -19,6 +19,27 @@ - upper-constraints.txt - .zuul.d/cross-jobs.yaml +- job: + name: requirements-cross-npm + parent: nodejs-npm-run-test + timeout: 2400 + description: | + A parent job to perform cross-repository npm tests. + + Inherit from this job, and add the intended project to + ``required-projects``. + + Also, set the following variable: + + .. zuul:jobvar:: tox_envlist + + Use the specified tox environments (``ALL`` selects all). + vars: + zuul_work_dir: "{{ (zuul.projects.values() | selectattr('required') | selectattr('name', 'match', '^(?!openstack/requirements)') | list)[0].src_dir }}" + files: + - upper-constraints.txt + - .zuul.d/cross-jobs.yaml + - job: name: cross-cinder-py27 parent: requirements-cross-test @@ -67,6 +88,14 @@ vars: tox_envlist: py35 +- job: + name: cross-horizon-npm + parent: requirements-cross-npm + description: Run cross-project tests on horizon with npm. + required-projects: openstack/horizon + vars: + tox_envlist: npm + - job: name: cross-keystone-py27 parent: requirements-cross-test diff --git a/.zuul.d/project.yaml b/.zuul.d/project.yaml index d482960b73..181b1766c6 100644 --- a/.zuul.d/project.yaml +++ b/.zuul.d/project.yaml @@ -34,6 +34,7 @@ - cross-glance-py35 - cross-horizon-py27 - cross-horizon-py35 + - cross-horizon-npm - cross-keystone-py27 - cross-keystone-py35 - cross-neutron-py27 @@ -82,6 +83,7 @@ - cross-glance-py35 - cross-horizon-py27 - cross-horizon-py35 + - cross-horizon-npm - cross-keystone-py27 - cross-keystone-py35 - cross-neutron-py27