2018-09-08 19:36:42 +02:00
|
|
|
SETLOCAL EnableDelayedExpansion
|
|
|
|
|
2021-12-15 23:40:35 +01:00
|
|
|
rem Disable launching the JIT debugger for ctest.exe
|
|
|
|
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\AutoExclusionList" /v "ctest.ext" /t REG_DWORD /d 1
|
2017-12-03 13:03:52 +01:00
|
|
|
cd Build
|
|
|
|
if "%CONFIGURATION%"=="Debug" (
|
2018-03-06 18:33:18 +01:00
|
|
|
if "%coverage%"=="1" (
|
2024-04-20 16:29:56 +02:00
|
|
|
ctest -j 2 -C %CONFIGURATION% -D ExperimentalMemCheck -LE uses-signals || exit /b !ERRORLEVEL!
|
2019-12-06 11:40:53 +01:00
|
|
|
python ..\tools\misc\appveyorMergeCoverageScript.py || exit /b !ERRORLEVEL!
|
2018-09-08 19:36:42 +02:00
|
|
|
codecov --root .. --no-color --disable gcov -f cobertura.xml -t %CODECOV_TOKEN% || exit /b !ERRORLEVEL!
|
2018-03-06 18:33:18 +01:00
|
|
|
) else (
|
2018-09-08 19:36:42 +02:00
|
|
|
ctest -j 2 -C %CONFIGURATION% || exit /b !ERRORLEVEL!
|
2018-03-06 18:33:18 +01:00
|
|
|
)
|
2017-12-03 13:03:52 +01:00
|
|
|
)
|
|
|
|
if "%CONFIGURATION%"=="Release" (
|
2018-09-08 19:36:42 +02:00
|
|
|
ctest -j 2 -C %CONFIGURATION% || exit /b !ERRORLEVEL!
|
2017-12-03 13:03:52 +01:00
|
|
|
)
|