2018-09-08 13:36:42 -04:00
|
|
|
SETLOCAL EnableDelayedExpansion
|
|
|
|
|
2021-12-15 17:40:35 -05: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 07:03:52 -05:00
|
|
|
cd Build
|
|
|
|
if "%CONFIGURATION%"=="Debug" (
|
2018-03-06 12:33:18 -05:00
|
|
|
if "%coverage%"=="1" (
|
2024-04-20 10:29:56 -04:00
|
|
|
ctest -j 2 -C %CONFIGURATION% -D ExperimentalMemCheck -LE uses-signals || exit /b !ERRORLEVEL!
|
2019-12-06 05:40:53 -05:00
|
|
|
python ..\tools\misc\appveyorMergeCoverageScript.py || exit /b !ERRORLEVEL!
|
2018-09-08 13:36:42 -04:00
|
|
|
codecov --root .. --no-color --disable gcov -f cobertura.xml -t %CODECOV_TOKEN% || exit /b !ERRORLEVEL!
|
2018-03-06 12:33:18 -05:00
|
|
|
) else (
|
2018-09-08 13:36:42 -04:00
|
|
|
ctest -j 2 -C %CONFIGURATION% || exit /b !ERRORLEVEL!
|
2018-03-06 12:33:18 -05:00
|
|
|
)
|
2017-12-03 07:03:52 -05:00
|
|
|
)
|
|
|
|
if "%CONFIGURATION%"=="Release" (
|
2018-09-08 13:36:42 -04:00
|
|
|
ctest -j 2 -C %CONFIGURATION% || exit /b !ERRORLEVEL!
|
2017-12-03 07:03:52 -05:00
|
|
|
)
|