appveyorTestRunScript.bat 708 B

1234567891011121314151617
  1. SETLOCAL EnableDelayedExpansion
  2. rem Disable launching the JIT debugger for ctest.exe
  3. reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\AutoExclusionList" /v "ctest.ext" /t REG_DWORD /d 1
  4. cd Build
  5. if "%CONFIGURATION%"=="Debug" (
  6. if "%coverage%"=="1" (
  7. ctest -j 2 -C %CONFIGURATION% -D ExperimentalMemCheck || exit /b !ERRORLEVEL!
  8. python ..\tools\misc\appveyorMergeCoverageScript.py || exit /b !ERRORLEVEL!
  9. codecov --root .. --no-color --disable gcov -f cobertura.xml -t %CODECOV_TOKEN% || exit /b !ERRORLEVEL!
  10. ) else (
  11. ctest -j 2 -C %CONFIGURATION% || exit /b !ERRORLEVEL!
  12. )
  13. )
  14. if "%CONFIGURATION%"=="Release" (
  15. ctest -j 2 -C %CONFIGURATION% || exit /b !ERRORLEVEL!
  16. )