From 5e4797bda7b9d1c509116118f8f67e707dba3910 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sun, 5 Nov 2017 07:41:00 +0100 Subject: [PATCH] Add nodejs-npm jobs Add native nodejs jobs for lint and test. Needed-By: Ib38294ab48ef158a248637de79970ef60bc44f7f Change-Id: I45294049d9228020b70f6b18265e21fa9385f782 --- playbooks/javascript/run-lint.yaml | 4 ++++ playbooks/javascript/run-test.yaml | 4 ++++ zuul.yaml | 29 +++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 playbooks/javascript/run-lint.yaml create mode 100644 playbooks/javascript/run-test.yaml diff --git a/playbooks/javascript/run-lint.yaml b/playbooks/javascript/run-lint.yaml new file mode 100644 index 000000000..0fbd82caa --- /dev/null +++ b/playbooks/javascript/run-lint.yaml @@ -0,0 +1,4 @@ +- hosts: all + roles: + - role: npm + npm_command: lint diff --git a/playbooks/javascript/run-test.yaml b/playbooks/javascript/run-test.yaml new file mode 100644 index 000000000..e7cc37c49 --- /dev/null +++ b/playbooks/javascript/run-test.yaml @@ -0,0 +1,4 @@ +- hosts: all + roles: + - role: npm + npm_command: test diff --git a/zuul.yaml b/zuul.yaml index 6926d8ef2..f9231a0ea 100644 --- a/zuul.yaml +++ b/zuul.yaml @@ -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