[Spice-devel] [PATCH spice-server] ci: Run an additional make check using Centos

Frediano Ziglio fziglio at redhat.com
Wed Jun 20 17:21:27 UTC 2018


Make sure we can compile and run base tests using latest Centos.

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
--
Don't know if there's a way to avoid such copy&paste (mainly the
script)
---
 .gitlab-ci.yml | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index becdb28b..50fb7a15 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -50,3 +50,22 @@ distcheck:
   script:
   - ./autogen.sh --enable-celt051 --enable-manual
   - make distcheck
+
+# Same as makecheck job but use a Centos image
+makecheck-centos:
+  before_script:
+    - >
+      yum install git libtool make libasan orc-devel
+      python3 python3-six python3-pyparsing glib-networking
+      yum-utils yum-plugin-copr
+      -y
+    - yum copr enable @spice/nightly -y
+    - yum-builddep spice -y
+  image: centos:latest
+  script:
+  - >
+    CFLAGS='-O2 -pipe -g -fsanitize=address -fno-omit-frame-pointer -Wframe-larger-than=40920'
+    LDFLAGS='-fsanitize=address -lasan'
+    ./autogen.sh --enable-celt051
+  - make
+  - make -C server check || (cat server/tests/test-suite.log && exit 1)
-- 
2.17.1



More information about the Spice-devel mailing list