diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-07-22 15:35:03 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-07-22 18:10:28 +0200 |
commit | fc3b9c72841b00db7a594098fe7b3c245ffdb6c8 (patch) | |
tree | eee49158a8fc2f53fedddb49b6f9132d0d70a753 /.gitlab-ci | |
parent | e0d0bbec5bfc1ac91a51bf3ed386fa9aabacdae0 (diff) | |
download | gobject-introspection-fc3b9c72841b00db7a594098fe7b3c245ffdb6c8.tar.gz |
ci: add a msvc job
Diffstat (limited to '.gitlab-ci')
-rw-r--r-- | .gitlab-ci/test-msvc.bat | 21 |
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 |