Merge "Split browser and non-browser targetting js test jobs"

This commit is contained in:
Zuul 2020-05-12 17:10:19 +00:00 committed by Gerrit Code Review
commit b8a24d635f
3 changed files with 27 additions and 1 deletions

View File

@ -6,5 +6,6 @@ Javascript Jobs
.. zuul:autojob:: build-javascript-deployment-tarball
.. zuul:autojob:: js-build
.. zuul:autojob:: nodejs-run-test
.. zuul:autojob:: nodejs-run-test-browser
.. zuul:autojob:: nodejs-run-lint
.. zuul:autojob:: nodejs-run-docs

View File

@ -129,6 +129,31 @@
- job:
name: nodejs-run-test
parent: js-build
description: |
Run test using nodejs.
Responds to these variables:
.. zuul:jobvar:: node_version
:default: 14
The version of Node to use.
.. zuul:jobvar:: zuul_work_dir
:default: {{ zuul.project.src_dir }}
Path to operate in.
.. zuul:jobvar:: javascript_content_dir
:default: dist
Directory, relative to zuul_work_dir, holding build content.
vars:
js_build_command: test
- job:
name: nodejs-run-test-browser
parent: js-build
description: |
Run test using nodejs. This test also starts Xvfb for run time
tests.
@ -149,7 +174,7 @@
:default: dist
Directory, relative to zuul_work_dir, holding build content.
pre-run: playbooks/javascript/pre-test.yaml
pre-run: playbooks/javascript/browser.yaml
vars:
js_build_command: test