Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/tools/misc/appveyorBuildConfigurationScript.bat
diff options
context:
space:
mode:
authorMartin Hořeňovský2019-12-06 11:40:53 +0100
committerMartin Hořeňovský2019-12-06 11:40:53 +0100
commit6eb04667ad4f571f20b040c5e7a4e0c25e99787c (patch)
treec8709fc63d79e3c43a2f1c9309fde39732f6bc58 /tools/misc/appveyorBuildConfigurationScript.bat
parent604ededf7765fd0521a97b35f496af4996c52368 (diff)
downloadcatch3-6eb04667ad4f571f20b040c5e7a4e0c25e99787c.tar.gz
Move misc/ to tools/misc
Diffstat (limited to 'tools/misc/appveyorBuildConfigurationScript.bat')
-rw-r--r--tools/misc/appveyorBuildConfigurationScript.bat22
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/misc/appveyorBuildConfigurationScript.bat b/tools/misc/appveyorBuildConfigurationScript.bat
new file mode 100644
index 00000000..5933da38
--- /dev/null
+++ b/tools/misc/appveyorBuildConfigurationScript.bat
@@ -0,0 +1,22 @@
+SETLOCAL EnableDelayedExpansion
+
+@REM # Possibilities:
+@REM # Debug build + coverage
+@REM # Debug build + examples
+@REM # Debug build + ---
+@REM # Release build
+if "%CONFIGURATION%"=="Debug" (
+ if "%coverage%"=="1" (
+ @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!
+ ) else (
+ @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!
+ )
+)
+if "%CONFIGURATION%"=="Release" (
+ cmake -H. -BBuild -A%PLATFORM% -DUSE_WMAIN=%wmain% || exit /b !ERRORLEVEL!
+)