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