Fix npm-run-test
The legacy test installed chromium and xvfb as well and started it, add these back in for the run-test job. Closes-Bug: #1731421 Change-Id: I40b7d019551c227e4b8a0e11366b1ce448d5bbed Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
This commit is contained in:
parent
d0851b0b4a
commit
e2138467d6
12
playbooks/javascript/pre-test.yaml
Normal file
12
playbooks/javascript/pre-test.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
- hosts: all
|
||||||
|
roles:
|
||||||
|
- role: bindep
|
||||||
|
bindep_profile: test
|
||||||
|
bindep_dir: "{{ zuul_work_dir }}"
|
||||||
|
- test-setup
|
||||||
|
- install-nodejs
|
||||||
|
# nodejs-test-dependencies requires sudo,
|
||||||
|
# so we cannot inherit pre.yaml from javascript-base.
|
||||||
|
- nodejs-test-dependencies
|
||||||
|
- revoke-sudo
|
||||||
|
- install-javascript-packages
|
1
roles/nodejs-test-dependencies/README.rst
Normal file
1
roles/nodejs-test-dependencies/README.rst
Normal file
@ -0,0 +1 @@
|
|||||||
|
Install test dependencies for Node
|
12
roles/nodejs-test-dependencies/tasks/main.yaml
Normal file
12
roles/nodejs-test-dependencies/tasks/main.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
- name: Install chromium-brower
|
||||||
|
apt:
|
||||||
|
name: chromium-browser
|
||||||
|
become: true
|
||||||
|
|
||||||
|
- name: Install xvfb
|
||||||
|
apt:
|
||||||
|
name: xvfb
|
||||||
|
become: true
|
||||||
|
|
||||||
|
- name: Run Xvfb
|
||||||
|
shell: "/usr/bin/Xvfb :99 -screen 0 '1280x1024x24' -ac +extension GLX +render -noreset 2>&1 > /dev/null &"
|
@ -209,7 +209,6 @@
|
|||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: nodejs-npm-run-test
|
name: nodejs-npm-run-test
|
||||||
parent: javascript-base
|
|
||||||
description: |
|
description: |
|
||||||
Run test using nodejs.
|
Run test using nodejs.
|
||||||
|
|
||||||
@ -220,7 +219,9 @@
|
|||||||
|
|
||||||
The version of Node to use.
|
The version of Node to use.
|
||||||
|
|
||||||
|
pre-run: playbooks/javascript/pre-test.yaml
|
||||||
run: playbooks/javascript/run-test.yaml
|
run: playbooks/javascript/run-test.yaml
|
||||||
|
post-run: playbooks/javascript/post.yaml
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: nodejs-npm-run-lint
|
name: nodejs-npm-run-lint
|
||||||
|
Loading…
Reference in New Issue
Block a user