test-msvc.bat 769 Bytes
Newer Older
Christoph Reiter's avatar
Christoph Reiter committed
1 2 3 4 5 6 7
@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
8
pip3 install --upgrade --user meson==0.48.0  || goto :error
Christoph Reiter's avatar
Christoph Reiter committed
9 10 11
meson _build || goto :error
ninja -C _build || goto :error

12
:: FIXME: dont ignore test errors
13
meson test -C _build --timeout-multiplier %MESON_TEST_TIMEOUT_MULTIPLIER% --no-suite flaky
Christoph Reiter's avatar
Christoph Reiter committed
14 15 16

:: FIXME: can we get code coverage support?

17 18 19 20 21

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"

Christoph Reiter's avatar
Christoph Reiter committed
22 23 24
goto :EOF
:error
exit /b 1