summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci')
-rw-r--r--.gitlab-ci/test-msvc.bat21
1 files changed, 21 insertions, 0 deletions
diff --git a/.gitlab-ci/test-msvc.bat b/.gitlab-ci/test-msvc.bat
new file mode 100644
index 00000000..6812f942
--- /dev/null
+++ b/.gitlab-ci/test-msvc.bat
@@ -0,0 +1,21 @@
+@echo on
+call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
+@echo on
+
+py -3 -c "import urllib.request, sys; urllib.request.urlretrieve(*sys.argv[1:])" "https://github.com/lexxmark/winflexbison/releases/download/v2.5.14/win_flex_bison-2.5.14.zip" win_flex_bison.zip
+py -3 -m zipfile -e win_flex_bison.zip win_flex_bison
+
+py -3 -c "import urllib.request, sys; urllib.request.urlretrieve(*sys.argv[1:])" "https://sourceforge.net/projects/pkgconfiglite/files/0.28-1/pkg-config-lite-0.28-1_bin-win32.zip/download" pkg-config-lite-0.28-1.zip
+py -3 -m zipfile -e pkg-config-lite-0.28-1.zip .
+
+SET PATH=%CD%\pkg-config-lite-0.28-1\bin;%CD%\win_flex_bison;%PATH%
+
+pip3 install --upgrade --user meson==0.47.1 || goto :error
+meson _build || goto :error
+ninja -C _build || goto :error
+
+meson test -C _build --suite=gobject-introspection || goto :error
+
+goto :EOF
+:error
+exit /b 1