Add nodejs-npm jobs

Add native nodejs jobs for lint and test.

Needed-By: Ib38294ab48ef158a248637de79970ef60bc44f7f
Change-Id: I45294049d9228020b70f6b18265e21fa9385f782
This commit is contained in:
Andreas Jaeger 2017-11-05 07:41:00 +01:00
parent d6d835e414
commit 5e4797bda7
3 changed files with 37 additions and 0 deletions

View File

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

View File

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

View File

@ -206,3 +206,32 @@
Path to operate in.
run: playbooks/javascript/tarball.yaml
- job:
name: nodejs-npm-run-test
parent: javascript-base
description: |
Run test using nodejs.
Responds to this variable:
.. zuul:jobvar:: node_version
:default: 6
The version of Node to use.
run: playbooks/javascript/run-test.yaml
- job:
name: nodejs-npm-run-lint
parent: javascript-base
description: |
Run lint using nodejs.
Responds to this variable:
.. zuul:jobvar:: node_version
:default: 6
The version of Node to use.
run: playbooks/javascript/run-lint.yaml