mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Reenable appveyor for CI
This commit is contained in:
parent
69bd213c40
commit
ebeeaaeec6
@ -26,7 +26,7 @@ before_build:
|
|||||||
# Indirection because appveyor doesn't handle multiline batch scripts properly
|
# Indirection because appveyor doesn't handle multiline batch scripts properly
|
||||||
# https://stackoverflow.com/questions/37627248/how-to-split-a-command-over-multiple-lines-in-appveyor-yml/37647169#37647169
|
# https://stackoverflow.com/questions/37627248/how-to-split-a-command-over-multiple-lines-in-appveyor-yml/37647169#37647169
|
||||||
# https://help.appveyor.com/discussions/questions/3888-multi-line-cmd-or-powershell-warning-ignore
|
# https://help.appveyor.com/discussions/questions/3888-multi-line-cmd-or-powershell-warning-ignore
|
||||||
- cmd: .\misc\appveyorBuildConfigurationScript.bat
|
- cmd: .\tools\misc\appveyorBuildConfigurationScript.bat
|
||||||
|
|
||||||
|
|
||||||
# build with MSBuild
|
# build with MSBuild
|
||||||
@ -37,7 +37,7 @@ build:
|
|||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- set CTEST_OUTPUT_ON_FAILURE=1
|
- set CTEST_OUTPUT_ON_FAILURE=1
|
||||||
- cmd: .\misc\appveyorTestRunScript.bat
|
- cmd: .\tools\misc\appveyorTestRunScript.bat
|
||||||
|
|
||||||
|
|
||||||
# Sadly we cannot use the standard "dimensions" based approach towards
|
# Sadly we cannot use the standard "dimensions" based approach towards
|
||||||
|
@ -13,7 +13,6 @@ if "%CONFIGURATION%"=="Debug" (
|
|||||||
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 || exit /b !ERRORLEVEL! || exit /b !ERRORLEVEL!
|
||||||
) else (
|
) else (
|
||||||
@REM # We know that coverage is 0
|
@REM # We know that coverage is 0
|
||||||
python scripts\generateSingleHeader.py || exit /b !ERRORLEVEL!
|
|
||||||
cmake -H. -BBuild -A%PLATFORM% -DUSE_WMAIN=%wmain% -DCATCH_BUILD_EXAMPLES=%examples% -DCATCH_BUILD_EXTRA_TESTS=%examples% || exit /b !ERRORLEVEL!
|
cmake -H. -BBuild -A%PLATFORM% -DUSE_WMAIN=%wmain% -DCATCH_BUILD_EXAMPLES=%examples% -DCATCH_BUILD_EXTRA_TESTS=%examples% || exit /b !ERRORLEVEL!
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -4,6 +4,6 @@ import glob
|
|||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
cov_files = list(glob.glob('projects/cov-report*.bin'))
|
cov_files = list(glob.glob('tests/cov-report*.bin'))
|
||||||
base_cmd = ['OpenCppCoverage', '--quiet', '--export_type=cobertura:cobertura.xml'] + ['--input_coverage={}'.format(f) for f in cov_files]
|
base_cmd = ['OpenCppCoverage', '--quiet', '--export_type=cobertura:cobertura.xml'] + ['--input_coverage={}'.format(f) for f in cov_files]
|
||||||
subprocess.check_call(base_cmd)
|
subprocess.check_call(base_cmd)
|
||||||
|
Loading…
Reference in New Issue
Block a user