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:
Andreas Jaeger 2017-11-10 11:58:33 +01:00 committed by Akihiro Motoki
parent d0851b0b4a
commit e2138467d6
4 changed files with 27 additions and 1 deletions

View 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

View File

@ -0,0 +1 @@
Install test dependencies for Node

View 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 &"

View File

@ -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