From fd9b786f59be35511833cdb5ab6126dec286ed6c Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sun, 18 Feb 2018 19:51:50 +0100 Subject: [PATCH] Move unittest job in-tree Move the unittest job for this repo in-tree as Zuul v3 native job. Change-Id: If7632956b6d28047fbacb4e9bbd416e69b0d060b --- .zuul.yaml | 13 +++++++++++++ playbooks/unittest/run.yaml | 11 +++++++++++ 2 files changed, 24 insertions(+) create mode 100644 .zuul.yaml create mode 100644 playbooks/unittest/run.yaml diff --git a/.zuul.yaml b/.zuul.yaml new file mode 100644 index 0000000..e144ea7 --- /dev/null +++ b/.zuul.yaml @@ -0,0 +1,13 @@ +- job: + name: openstack-planet-unittest + description: | + Runs unit test on openstack-plannet project. + run: playbooks/unittest/run.yaml + +- project: + check: + jobs: + - openstack-planet-unittest + gate: + jobs: + - openstack-planet-unittest diff --git a/playbooks/unittest/run.yaml b/playbooks/unittest/run.yaml new file mode 100644 index 0000000..27b929b --- /dev/null +++ b/playbooks/unittest/run.yaml @@ -0,0 +1,11 @@ +- hosts: all + + tasks: + - name: Run test.py + shell: + chdir: '{{ zuul.project.src_dir }}' + executable: /bin/bash + cmd: | + set -e + set -x + python test.py