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
|
2022-01-14 17:01:16 +01:00
|
|
|
|
|
|
|
:: Remove quotes from script args
|
|
|
|
setlocal enabledelayedexpansion
|
|
|
|
set args=
|
|
|
|
for %%x in (%*) do (
|
|
|
|
set args=!args! %%~x
|
|
|
|
)
|
|
|
|
set args=%args:~1%
|
2018-05-24 19:18:25 +02:00
|
|
|
|
|
|
|
:: FIXME: make warnings fatal
|
2023-02-16 14:29:54 +01:00
|
|
|
pip3 install --upgrade --user meson==1.0.0 || goto :error
|
2022-01-14 17:01:16 +01:00
|
|
|
meson %args% _build || goto :error
|
2022-09-19 16:29:40 +02:00
|
|
|
python .gitlab-ci/check-missing-install-tag.py _build || goto :error
|
2018-05-24 19:18:25 +02:00
|
|
|
ninja -C _build || goto :error
|
|
|
|
|
2023-01-20 15:41:17 +01:00
|
|
|
meson test -v -C _build --timeout-multiplier %MESON_TEST_TIMEOUT_MULTIPLIER% || goto :error
|
|
|
|
meson test -v -C _build --timeout-multiplier %MESON_TEST_TIMEOUT_MULTIPLIER% --setup=unstable_tests --suite=failing --suite=flaky
|
2018-05-24 19:18:25 +02:00
|
|
|
|
2022-10-20 06:27:13 +02:00
|
|
|
:: Workaround meson issue https://github.com/mesonbuild/meson/issues/9894
|
|
|
|
python -c "n = '_build/meson-logs/testlog.junit.xml'; c = open(n, 'rb').read().replace(b'\x1b', b''); open(n, 'wb').write(c)" || goto :error
|
2022-12-08 16:27:24 +01:00
|
|
|
python -c "n = '_build/meson-logs/testlog-unstable_tests.junit.xml'; c = open(n, 'rb').read().replace(b'\x1b', b''); open(n, 'wb').write(c)"
|
2022-10-20 06:27:13 +02:00
|
|
|
|
2018-05-24 19:18:25 +02:00
|
|
|
:: FIXME: can we get code coverage support?
|
|
|
|
|
|
|
|
goto :EOF
|
|
|
|
:error
|
2022-10-20 06:27:13 +02:00
|
|
|
|
|
|
|
:: Workaround meson issue https://github.com/mesonbuild/meson/issues/9894
|
|
|
|
python -c "n = '_build/meson-logs/testlog.junit.xml'; c = open(n, 'rb').read().replace(b'\x1b', b''); open(n, 'wb').write(c)"
|
|
|
|
python -c "n = '_build/meson-logs/testlog-unstable_tests.junit.xml'; c = open(n, 'rb').read().replace(b'\x1b', b''); open(n, 'wb').write(c)"
|
|
|
|
|
2018-05-24 19:18:25 +02:00
|
|
|
exit /b 1
|