Add npm-docs job

Add a job for building javascript documentation using Node.

Change-Id: I4517b9fb5d9b17b099e2a5ab138688caaa976be9
This commit is contained in:
Andreas Jaeger 2017-11-09 21:31:13 +01:00
parent b4bd1f0a74
commit 560a907b06
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,4 @@
- hosts: all
roles:
- role: npm
npm_command: docs

View File

@ -235,3 +235,19 @@
The version of Node to use.
run: playbooks/javascript/run-lint.yaml
- job:
name: nodejs-npm-run-docs
parent: javascript-base
description: |
Run docs using nodejs.
Responds to this variable:
.. zuul:jobvar:: node_version
:default: 6
The version of Node to use.
run: playbooks/javascript/run-docs.yaml
post-run: playbooks/tox/docs-post.yaml
success-url: html/