2018-05-24 19:18:25 +02:00
|
|
|
@echo on
|
|
|
|
:: vcvarsall.bat sets various env vars like PATH, INCLUDE, LIB, LIBPATH for the
|
|
|
|
:: specified build architecture
|
2020-04-29 08:44:43 +02:00
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64
|
2018-05-24 19:18:25 +02:00
|
|
|
@echo on
|
|
|
|
|
|
|
|
:: FIXME: make warnings fatal
|
2021-10-07 18:05:12 +02:00
|
|
|
pip3 install --upgrade --user meson==0.52.0 || goto :error
|
2018-05-24 19:18:25 +02:00
|
|
|
meson _build || goto :error
|
|
|
|
ninja -C _build || goto :error
|
|
|
|
|
2018-05-26 17:59:27 +02:00
|
|
|
:: FIXME: dont ignore test errors
|
2019-01-09 11:47:24 +01:00
|
|
|
meson test -C _build --timeout-multiplier %MESON_TEST_TIMEOUT_MULTIPLIER% --no-suite flaky
|
2018-05-24 19:18:25 +02:00
|
|
|
|
|
|
|
:: FIXME: can we get code coverage support?
|
|
|
|
|
2019-04-08 08:06:22 +02:00
|
|
|
|
|
|
|
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"
|
|
|
|
|
2018-05-24 19:18:25 +02:00
|
|
|
goto :EOF
|
|
|
|
:error
|
|
|
|
exit /b 1
|