diff --git a/.zuul.yaml b/.zuul.yaml index 1f5db7e107..7193842c23 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -70,6 +70,43 @@ - ^setup.cfg$ - ^tools/.*$ +- job: + name: horizon-nodejs4-run-lint + parent: nodejs-run-lint + description: | + Run lint using Node 4 for horizon plugins. + vars: + node_version: 4 + nodeset: ubuntu-xenial + pre-run: playbooks/horizon-nodejs/pre.yaml + required-projects: + openstack/horizon + +- job: + name: horizon-nodejs4-run-test + parent: nodejs-run-test-browser + description: | + Run test using Node 4 for horizon plugins. + vars: + node_version: 4 + nodeset: ubuntu-xenial + pre-run: playbooks/horizon-nodejs/pre.yaml + required-projects: + openstack/horizon + +- project-template: + name: horizon-nodejs4-jobs + description: | + Run lint and test jobs using Node 4 for horizon plugins. + check: + jobs: + - horizon-nodejs4-run-lint + - horizon-nodejs4-run-test + gate: + jobs: + - horizon-nodejs4-run-lint + - horizon-nodejs4-run-test + - project: templates: - openstack-python-jobs @@ -78,7 +115,7 @@ - periodic-stable-jobs - check-requirements - release-notes-jobs - - nodejs4-jobs + - horizon-nodejs4-jobs check: jobs: - horizon-openstack-tox-python3-django111 diff --git a/playbooks/horizon-nodejs/pre.yaml b/playbooks/horizon-nodejs/pre.yaml new file mode 100644 index 0000000000..b346b04629 --- /dev/null +++ b/playbooks/horizon-nodejs/pre.yaml @@ -0,0 +1,6 @@ +- hosts: all + roles: + # package.json needs to run 'tox' as command, ensure that it's + # installed and can be used globally. + - role: ensure-tox + ensure_global_symlinks: True