summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2019-04-30 11:59:14 +0100
committerFrediano Ziglio <fziglio@redhat.com>2019-05-07 10:14:38 +0100
commitd5041a50399097a1d80a81907e15e322e70aa9b8 (patch)
tree5e31347e3d92e718cb0eb9487e32b02e48bf1d2c /.gitlab-ci.yml
parent80fb39eedd1d8466348e33f758d070a042d6a8c2 (diff)
ci: Add test for Windows using MingW
Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Victor Toso <victortoso@redhat.com>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2c1f46ad..91ee47ed 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -93,3 +93,21 @@ makecheck-centos:
./autogen.sh --enable-celt051
- make
- make -C server check || (cat server/tests/test-suite.log && exit 1)
+
+# Same as makecheck job but use Windows build
+makecheck-windows:
+ script:
+ - >
+ dnf install -y
+ wine-core.x86_64 mingw64-gcc-c++
+ mingw64-openssl mingw64-glib2 mingw64-glib-networking mingw64-libjpeg-turbo
+ mingw64-pixman mingw64-opus mingw64-winpthreads mingw64-zlib
+ mingw64-gstreamer1-plugins-base mingw64-gstreamer1-plugins-good mingw64-orc
+ - cd spice-protocol
+ - mingw64-configure
+ - mingw64-make install
+ - cd ..
+ - NOCONFIGURE=yes ./autogen.sh
+ - mingw64-configure --disable-celt051
+ - mingw64-make
+ - mingw64-make LOG_COMPILE=wine -C server check || (cat server/tests/test-suite.log && exit 1)