Properly exit appveyor batch scripts on error
This commit is contained in:
1 parent
a3876adba6
commit
bcfa9b1775
2 files changed
+15
-12
No files matched your search
@@ -1,13 +1,15 @@
|
||||
SETLOCAL EnableDelayedExpansion
|
||||
|
||||
cd Build
|
||||
if "%CONFIGURATION%"=="Debug" (
|
||||
if "%coverage%"=="1" (
|
||||
ctest -j 2 -C %CONFIGURATION% -D ExperimentalMemCheck
|
||||
python ..\misc\appveyorMergeCoverageScript.py
|
||||
codecov --root .. --no-color --disable gcov -f cobertura.xml -t %CODECOV_TOKEN%
|
||||
ctest -j 2 -C %CONFIGURATION% -D ExperimentalMemCheck || exit /b !ERRORLEVEL!
|
||||
python ..\misc\appveyorMergeCoverageScript.py || exit /b !ERRORLEVEL!
|
||||
codecov --root .. --no-color --disable gcov -f cobertura.xml -t %CODECOV_TOKEN% || exit /b !ERRORLEVEL!
|
||||
) else (
|
||||
ctest -j 2 -C %CONFIGURATION%
|
||||
ctest -j 2 -C %CONFIGURATION% || exit /b !ERRORLEVEL!
|
||||
)
|
||||
)
|
||||
if "%CONFIGURATION%"=="Release" (
|
||||
ctest -j 2 -C %CONFIGURATION%
|
||||
ctest -j 2 -C %CONFIGURATION% || exit /b !ERRORLEVEL!
|
||||
)
|
||||
Reference in new issue
Block a user