mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 02:46:16 +01:00
c3645a84b6
gitlab will drop cmd.exe support with GitLab 13 so I took the opportunity to add new runners with Windows 2016 and powershell as default. These runners are tagged with win32-ps instead of win32. The old runners will be switched off in the coming weeks. The main difference is that all commands and env expansions use powershell and Windows 2016 instead of 2012r2.
25 lines
770 B
Batchfile
25 lines
770 B
Batchfile
@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\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64
|
|
@echo on
|
|
|
|
:: FIXME: make warnings fatal
|
|
pip3 install --upgrade --user meson==0.49.2 || goto :error
|
|
meson _build || goto :error
|
|
ninja -C _build || goto :error
|
|
|
|
:: FIXME: dont ignore test errors
|
|
meson test -C _build --timeout-multiplier %MESON_TEST_TIMEOUT_MULTIPLIER% --no-suite flaky
|
|
|
|
:: FIXME: can we get code coverage support?
|
|
|
|
|
|
python "%CD%\.gitlab-ci\meson-junit-report.py" --project-name glib ^
|
|
--job-id "%CI_JOB_NAME%" --output "%CD%/_build/%CI_JOB_NAME%-report.xml" ^
|
|
"%CD%/_build/meson-logs/testlog.json"
|
|
|
|
goto :EOF
|
|
:error
|
|
exit /b 1
|