Add support for nodejs testing on Debian
This updates the nodejs-test-dependencies role to install packages on Debian as well as Ubuntu. The main driver for this is Ubuntu Jammy has updated firefox to run out of a snap and getting selenium to operate in that environment has been difficult. It is theoretically possible, but rather than force users to sort it out offer Debian as an alternative. Change-Id: I51cc95046520597a02c307c5d368f492933ed263
This commit is contained in:
parent
63e18a2467
commit
210ea49c10
7
roles/nodejs-test-dependencies/tasks/Debian.yaml
Normal file
7
roles/nodejs-test-dependencies/tasks/Debian.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
- name: Install browsers and xvfb
|
||||
apt:
|
||||
name:
|
||||
- chromium
|
||||
- firefox-esr
|
||||
- xvfb
|
||||
become: true
|
7
roles/nodejs-test-dependencies/tasks/Ubuntu.yaml
Normal file
7
roles/nodejs-test-dependencies/tasks/Ubuntu.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
- name: Install browsers and xvfb
|
||||
apt:
|
||||
name:
|
||||
- chromium-browser
|
||||
- firefox
|
||||
- xvfb
|
||||
become: true
|
@ -1,17 +1,13 @@
|
||||
- name: Install chromium-brower
|
||||
apt:
|
||||
name: chromium-browser
|
||||
become: true
|
||||
|
||||
- name: Install firefox
|
||||
apt:
|
||||
name: firefox
|
||||
become: true
|
||||
|
||||
- name: Install xvfb
|
||||
apt:
|
||||
name: xvfb
|
||||
become: true
|
||||
- name: Install distro specific packages
|
||||
include_tasks: "{{ zj_distro_pkgs }}"
|
||||
vars:
|
||||
params:
|
||||
files:
|
||||
- "{{ ansible_facts.distribution }}.yaml"
|
||||
- "{{ ansible_facts.os_family }}.yaml"
|
||||
loop: "{{ query('first_found', params, errors='ignore') }}"
|
||||
loop_control:
|
||||
loop_var: zj_distro_pkgs
|
||||
|
||||
- name: Run Xvfb
|
||||
shell: "/usr/bin/Xvfb :99 -screen 0 '1280x1024x24' -ac +extension GLX +render -noreset 2>&1 > /dev/null &"
|
||||
|
@ -38,11 +38,71 @@
|
||||
vars:
|
||||
zuul_use_fetch_output: false
|
||||
|
||||
- job:
|
||||
name: zuul-jobs-test-nodejs-test-dependencies
|
||||
description: Test the installation of nodejs test dependencies
|
||||
tags: debuntu-platforms
|
||||
files:
|
||||
- roles/nodejs-test-dependencies/.*
|
||||
run: test-playbooks/simple-role-test.yaml
|
||||
vars:
|
||||
role_name: nodejs-test-dependencies
|
||||
|
||||
# -* AUTOGENERATED *-
|
||||
# The following project section is autogenerated by
|
||||
# tox -e update-test-platforms
|
||||
# Please re-run to generate new job lists
|
||||
|
||||
- job:
|
||||
name: zuul-jobs-test-nodejs-test-dependencies-debian-bullseye
|
||||
description: Test the installation of nodejs test dependencies on debian-bullseye
|
||||
parent: zuul-jobs-test-nodejs-test-dependencies
|
||||
tags: auto-generated
|
||||
nodeset:
|
||||
nodes:
|
||||
- name: debian-bullseye
|
||||
label: debian-bullseye
|
||||
|
||||
- job:
|
||||
name: zuul-jobs-test-nodejs-test-dependencies-debian-buster
|
||||
description: Test the installation of nodejs test dependencies on debian-buster
|
||||
parent: zuul-jobs-test-nodejs-test-dependencies
|
||||
tags: auto-generated
|
||||
nodeset:
|
||||
nodes:
|
||||
- name: debian-buster
|
||||
label: debian-buster
|
||||
|
||||
- job:
|
||||
name: zuul-jobs-test-nodejs-test-dependencies-ubuntu-bionic
|
||||
description: Test the installation of nodejs test dependencies on ubuntu-bionic
|
||||
parent: zuul-jobs-test-nodejs-test-dependencies
|
||||
tags: auto-generated
|
||||
nodeset:
|
||||
nodes:
|
||||
- name: ubuntu-bionic
|
||||
label: ubuntu-bionic
|
||||
|
||||
- job:
|
||||
name: zuul-jobs-test-nodejs-test-dependencies-ubuntu-focal
|
||||
description: Test the installation of nodejs test dependencies on ubuntu-focal
|
||||
parent: zuul-jobs-test-nodejs-test-dependencies
|
||||
tags: auto-generated
|
||||
nodeset:
|
||||
nodes:
|
||||
- name: ubuntu-focal
|
||||
label: ubuntu-focal
|
||||
|
||||
- job:
|
||||
name: zuul-jobs-test-nodejs-test-dependencies-ubuntu-jammy
|
||||
description: Test the installation of nodejs test dependencies on ubuntu-jammy
|
||||
parent: zuul-jobs-test-nodejs-test-dependencies
|
||||
tags: auto-generated
|
||||
nodeset:
|
||||
nodes:
|
||||
- name: ubuntu-jammy
|
||||
label: ubuntu-jammy
|
||||
|
||||
- project:
|
||||
check:
|
||||
jobs: &id001
|
||||
@ -50,6 +110,11 @@
|
||||
- zuul-jobs-test-ensure-yarn
|
||||
- zuul-jobs-test-fetch-javascript-tarball
|
||||
- zuul-jobs-test-fetch-javascript-tarball-synchronize
|
||||
- zuul-jobs-test-nodejs-test-dependencies-debian-bullseye
|
||||
- zuul-jobs-test-nodejs-test-dependencies-debian-buster
|
||||
- zuul-jobs-test-nodejs-test-dependencies-ubuntu-bionic
|
||||
- zuul-jobs-test-nodejs-test-dependencies-ubuntu-focal
|
||||
- zuul-jobs-test-nodejs-test-dependencies-ubuntu-jammy
|
||||
gate:
|
||||
jobs: *id001
|
||||
periodic-weekly:
|
||||
|
Loading…
Reference in New Issue
Block a user