diff options
author | Ignacio Casal Quinteiro <qignacio@amazon.com> | 2020-01-02 15:09:22 +0100 |
---|---|---|
committer | Ignacio Casal Quinteiro <qignacio@amazon.com> | 2020-03-13 10:55:31 +0100 |
commit | ce9ffb8326c173b768ca5751c7f3f490ce3f63b8 (patch) | |
tree | 816ac308c1b9b83bc27c0852afcc1acf7608c0ea | |
parent | 38c57b3c8009d60dcb3427ac435872e7b75769e3 (diff) | |
download | glib-networking-ci-windows2.tar.gz |
CI for windowsci-windows2
-rw-r--r-- | .gitlab-ci.yml | 14 | ||||
-rw-r--r-- | .gitlab-ci/test-msvc.bat | 33 |
2 files changed, 47 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index da0b4ac..7bf1275 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,7 @@ image: registry.gitlab.gnome.org/gnome/glib-networking/master:v8 fedora-x86_64: tags: [ privileged ] + stage: build script: # Sadly, GCC 9's LeakSanitizer is quite crashy, #86. # So we will run our tests under asan only once. @@ -31,3 +32,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..3c501ca --- /dev/null +++ b/.gitlab-ci/test-msvc.bat @@ -0,0 +1,33 @@ +@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=c:\gnet + +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=%BUILD_DIR%\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% +set PKG_CONFIG_PATH=%DEPS_DIR%\lib\pkgconfig + +:: FIXME: make warnings fatal +pip3 install --upgrade --user meson==0.53.2 || goto :error +meson build -Dgnutls=disabled -Dopenssl=enabled || goto :error +ninja -C build || goto :error + +meson test -C build --timeout-multiplier=10 || goto :error + +:: FIXME: can we get code coverage support? + +goto :EOF +:error +exit /b 1 |