[glib: 1/2] ci: Add a VS2017 job
- From: Xavier Claessens <xclaesse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] ci: Add a VS2017 job
- Date: Sat, 26 May 2018 01:51:06 +0000 (UTC)
commit e7259c52ba25580ef6aea1d84d7dff1f7b80b42e
Author: Christoph Reiter <creiter src gnome org>
Date: Thu May 24 19:18:25 2018 +0200
ci: Add a VS2017 job
Thanks to Xavier Claessens for figuring out what is needed.
.gitlab-ci.yml | 11 +++++++++++
.gitlab-ci/test-msvc.bat | 17 +++++++++++++++++
2 files changed, 28 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6947da2d9..ae96804db 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -43,6 +43,17 @@ msys2-mingw32:
paths:
- _coverage/
+vs2017-x64:
+ stage: build
+ tags:
+ - win32
+ script:
+ - .gitlab-ci/test-msvc.bat
+ artifacts:
+ when: always
+ paths:
+ - _build/meson-logs
+
coverage:
stage: coverage
artifacts:
diff --git a/.gitlab-ci/test-msvc.bat b/.gitlab-ci/test-msvc.bat
new file mode 100644
index 000000000..098419d88
--- /dev/null
+++ b/.gitlab-ci/test-msvc.bat
@@ -0,0 +1,17 @@
+@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
+
+:: FIXME: make warnings fatal
+meson _build || goto :error
+ninja -C _build || goto :error
+
+meson test -C _build --timeout-multiplier 4 || 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]