From d83d58af1e247ca39f90fdb22d0005698540f520 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Fri, 19 Jun 2020 14:38:50 +0200 Subject: [PATCH] Fix horizon-nodejs10-run jobs Tox is not anymore pre-installed on the OpenDev CI images. The file package.json needs tox, install it to fix the job. Install it via a pre-run playbook so that this is run in addition to all of the playbooks of the parent. Change-Id: Icf82fa96f7d90453f78cf564c847682a286ed575 (cherry picked from commit 7cd0debebe1a300a96f8d0f21626793be0a0bc41) --- .zuul.yaml | 2 ++ playbooks/horizon-nodejs/pre.yaml | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 playbooks/horizon-nodejs/pre.yaml diff --git a/.zuul.yaml b/.zuul.yaml index 9064f07076..5c1f8daf66 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -118,6 +118,7 @@ vars: node_version: 10 nodeset: ubuntu-bionic + pre-run: playbooks/horizon-nodejs/pre.yaml required-projects: openstack/horizon @@ -128,6 +129,7 @@ Run test using Node 10 for horizon plugins. vars: node_version: 10 + pre-run: playbooks/horizon-nodejs/pre.yaml nodeset: ubuntu-bionic required-projects: openstack/horizon 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