diff --git a/.zuul.d/cross-jobs.yaml b/.zuul.d/cross-jobs.yaml index 977c1a3907..affeb53ab5 100644 --- a/.zuul.d/cross-jobs.yaml +++ b/.zuul.d/cross-jobs.yaml @@ -23,7 +23,7 @@ - job: name: requirements-cross-npm - parent: nodejs-npm-run-test + parent: nodejs-run-test-browser timeout: 2400 description: | A parent job to perform cross-repository npm tests. @@ -39,6 +39,7 @@ vars: zuul_work_dir: "{{ (zuul.projects.values() | selectattr('required') | selectattr('name', 'match', '^(?!openstack/requirements)') | list)[0].src_dir }}" tox_constraints_file: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/requirements'].src_dir }}/upper-constraints.txt" + pre-run: playbooks/nodejs-pre.yaml files: - upper-constraints.txt - .zuul.d/cross-jobs.yaml diff --git a/playbooks/nodejs-pre.yaml b/playbooks/nodejs-pre.yaml new file mode 100644 index 0000000000..b346b04629 --- /dev/null +++ b/playbooks/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