Skip to content

Commit

Permalink
Fix coverage collection on AppVeyor
Browse files Browse the repository at this point in the history
  • Loading branch information
horenmar committed Jan 31, 2020
1 parent ddd0e72 commit a7b3e08
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
9 changes: 2 additions & 7 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,10 @@ environment:
platform: x64
configuration: Release

- FLAVOR: VS 2019 x64 Debug Coverage
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
coverage: 1
platform: x64
configuration: Debug

- FLAVOR: VS 2019 x64 Debug Examples
- FLAVOR: VS 2019 x64 Debug Coverage Examples
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
examples: 1
coverage: 1
platform: x64
configuration: Debug

Expand Down
1 change: 1 addition & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ coverage:

codecov:
branch: master
max_report_age: off

comment:
layout: "diff"
2 changes: 1 addition & 1 deletion tools/misc/appveyorBuildConfigurationScript.bat
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if "%CONFIGURATION%"=="Debug" (
@REM # coverage needs to build the special helper as well as the main
cmake -Htools/misc -Bbuild-misc -A%PLATFORM% || exit /b !ERRORLEVEL!
cmake --build build-misc || exit /b !ERRORLEVEL!
cmake -H. -BBuild -A%PLATFORM% -DUSE_WMAIN=%wmain% -DMEMORYCHECK_COMMAND=build-misc\Debug\CoverageHelper.exe -DMEMORYCHECK_COMMAND_OPTIONS=--sep-- -DMEMORYCHECK_TYPE=Valgrind || exit /b !ERRORLEVEL! || exit /b !ERRORLEVEL!
cmake -H. -BBuild -A%PLATFORM% -DUSE_WMAIN=%wmain% -DMEMORYCHECK_COMMAND=build-misc\Debug\CoverageHelper.exe -DMEMORYCHECK_COMMAND_OPTIONS=--sep-- -DMEMORYCHECK_TYPE=Valgrind -DCATCH_BUILD_EXAMPLES=%examples% -DCATCH_BUILD_EXTRA_TESTS=%examples% || exit /b !ERRORLEVEL!
) else (
@REM # We know that coverage is 0
cmake -H. -BBuild -A%PLATFORM% -DUSE_WMAIN=%wmain% -DCATCH_BUILD_EXAMPLES=%examples% -DCATCH_BUILD_EXTRA_TESTS=%examples% || exit /b !ERRORLEVEL!
Expand Down

0 comments on commit a7b3e08

Please sign in to comment.