summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.zuul.yaml25
-rw-r--r--playbooks/unittests/run.yaml15
2 files changed, 40 insertions, 0 deletions
diff --git a/.zuul.yaml b/.zuul.yaml
new file mode 100644
index 0000000..2565a73
--- /dev/null
+++ b/.zuul.yaml
@@ -0,0 +1,25 @@
+- job:
+ name: liberasurecode-unittests
+ parent: unittests
+ description: |
+ Build and run test and valgrind-test for liberasurecode.
+ run: playbooks/unittests/run.yaml
+
+- job:
+ name: liberasurecode-unittests-centos-7
+ parent: liberasurecode-unittests
+ nodeset: centos-7
+ description: |
+ Build and run test and valgrind-test for liberasurecode.
+ This job runs on CentOS-7.
+
+- project:
+ check:
+ jobs:
+ - liberasurecode-unittests
+ gate:
+ jobs:
+ - liberasurecode-unittests
+ experimental:
+ jobs:
+ - liberasurecode-unittests-centos-7
diff --git a/playbooks/unittests/run.yaml b/playbooks/unittests/run.yaml
new file mode 100644
index 0000000..c66c4e3
--- /dev/null
+++ b/playbooks/unittests/run.yaml
@@ -0,0 +1,15 @@
+- hosts: all
+
+ tasks:
+ - name: Build and test
+ shell:
+ cmd: |
+ set -e
+ set -x
+ ./autogen.sh
+ ./configure
+ make
+ make test
+ make valgrind-test
+ executable: /bin/bash
+ chdir: '{{ zuul.project.src_dir }}'