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