Merge "Add simple run-test-command job"
This commit is contained in:
commit
0a673aa13b
7
playbooks/run-test-command/run.yaml
Normal file
7
playbooks/run-test-command/run.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
- hosts: all
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Run test_command
|
||||||
|
command: '{{ test_command }}'
|
||||||
|
args:
|
||||||
|
chdir: '{{ zuul.project.src_dir }}'
|
11
zuul.yaml
11
zuul.yaml
@ -472,3 +472,14 @@
|
|||||||
success-url: html/
|
success-url: html/
|
||||||
vars:
|
vars:
|
||||||
npm_command: docs
|
npm_command: docs
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: run-test-command
|
||||||
|
parent: unittests
|
||||||
|
description: |
|
||||||
|
Run simple command as test.
|
||||||
|
|
||||||
|
To use this, set the ``test_command`` variable.
|
||||||
|
run: playbooks/run-test-command/run.yaml
|
||||||
|
vars:
|
||||||
|
test_command: "exit 1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user