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 @@
1- job:
2 name: liberasurecode-unittests
3 parent: unittests
4 description: |
5 Build and run test and valgrind-test for liberasurecode.
6 run: playbooks/unittests/run.yaml
7
8- job:
9 name: liberasurecode-unittests-centos-7
10 parent: liberasurecode-unittests
11 nodeset: centos-7
12 description: |
13 Build and run test and valgrind-test for liberasurecode.
14 This job runs on CentOS-7.
15
16- project:
17 check:
18 jobs:
19 - liberasurecode-unittests
20 gate:
21 jobs:
22 - liberasurecode-unittests
23 experimental:
24 jobs:
25 - 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 @@
1- hosts: all
2
3 tasks:
4 - name: Build and test
5 shell:
6 cmd: |
7 set -e
8 set -x
9 ./autogen.sh
10 ./configure
11 make
12 make test
13 make valgrind-test
14 executable: /bin/bash
15 chdir: '{{ zuul.project.src_dir }}'