[glib-networking/ci-windows] CI for windows



commit 8d17ac5c688cd16014771f2ad9b5b625a457bb8c
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date:   Thu Jan 2 15:09:22 2020 +0100

    CI for windows

 .gitlab-ci.yml           | 13 +++++++++++++
 .gitlab-ci/test-msvc.bat | 32 ++++++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 62fbed5..4531ef3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -30,3 +30,16 @@ fedora-x86_64:
     paths:
       - build/test-results
     when: on_failure
+
+vs2017-x64:
+  stage: build
+  except:
+    - tags
+  tags:
+    - win32
+  script:
+    - .gitlab-ci/test-msvc.bat
+  artifacts:
+    paths:
+      - build/test-results
+    when: on_failure
diff --git a/.gitlab-ci/test-msvc.bat b/.gitlab-ci/test-msvc.bat
new file mode 100644
index 0000000..0bb4de0
--- /dev/null
+++ b/.gitlab-ci/test-msvc.bat
@@ -0,0 +1,32 @@
+@echo on
+:: vcvarsall.bat sets various env vars like PATH, INCLUDE, LIB, LIBPATH for the
+:: specified build architecture
+call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
+@echo on
+
+set BUILD_DIR=%cd%\deps
+
+git clone --depth 1 https://github.com/wingtk/gvsbuild.git || goto :error
+
+pushd gvsbuild
+python.exe build.py --verbose --debug build -p x64 --vs-ver 15 --build-dir %BUILD_DIR% openssl glib || goto 
:error
+popd
+
+set DEPS_DIR=%cd%\deps\gtk\x64\release
+set PATH=%DEPS_DIR%\bin;%PATH%
+set LIB=%DEPS_DIR%\lib;%LIB%
+set LIBPATH=%DEPS_DIR%\lib;%LIBPATH%
+set INCLUDE=%DEPS_DIR%\include;%DEPS_DIR%\include\glib-2.0;%INCLUDE%
+
+:: FIXME: make warnings fatal
+pip3 install --upgrade --user meson==0.52.0  || goto :error
+meson build || goto :error
+ninja -C build || goto :error
+
+meson test -C build --timeout-multiplier --timeout-multiplier=10 || goto :error
+
+:: FIXME: can we get code coverage support?
+
+goto :EOF
+:error
+exit /b 1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]