aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/catch2/appveyor.yml
diff options
context:
space:
mode:
authorLexi Winter <lexi@le-fay.org>2025-06-29 19:28:09 +0100
committerLexi Winter <lexi@le-fay.org>2025-06-29 19:28:09 +0100
commit67b2fae1fa8b033045a44c1355d9dfd8f83e0d9b (patch)
tree1ecd818f4bcf7d12622d43dc92c4d4bb9b746d0f /contrib/catch2/appveyor.yml
parenta8b0ea58e60bb0326b7f7c8f3c736d89ce9ef1df (diff)
parentbc524d70253a4ab2fe40c3ca3e5666e267c0a4d1 (diff)
downloadnihil-67b2fae1fa8b033045a44c1355d9dfd8f83e0d9b.tar.gz
nihil-67b2fae1fa8b033045a44c1355d9dfd8f83e0d9b.tar.bz2
Add 'contrib/catch2/' from commit 'bc524d70253a4ab2fe40c3ca3e5666e267c0a4d1'
git-subtree-dir: contrib/catch2 git-subtree-mainline: a8b0ea58e60bb0326b7f7c8f3c736d89ce9ef1df git-subtree-split: bc524d70253a4ab2fe40c3ca3e5666e267c0a4d1
Diffstat (limited to 'contrib/catch2/appveyor.yml')
-rw-r--r--contrib/catch2/appveyor.yml83
1 files changed, 83 insertions, 0 deletions
diff --git a/contrib/catch2/appveyor.yml b/contrib/catch2/appveyor.yml
new file mode 100644
index 0000000..ba4556e
--- /dev/null
+++ b/contrib/catch2/appveyor.yml
@@ -0,0 +1,83 @@
+version: "{build}-{branch}"
+
+# If we ever get a backlog larger than clone_depth, builds will fail
+# spuriously. I do not think we will ever get 20 deep commits deep though.
+clone_depth: 20
+
+# We want to build everything, except for branches that are explicitly
+# for messing around with Github Actions.
+branches:
+ except:
+ - /devel-gha.+/
+
+
+# We need a more up to date pip because Python 2.7 is EOL soon
+init:
+ - set PATH=C:\Python35;C:\Python35\Scripts;%PATH%
+
+
+install:
+ - ps: if (($env:CONFIGURATION) -eq "Debug" -And ($env:coverage) -eq "1" ) { pip --disable-pip-version-check install codecov }
+ # This removes our changes to PATH. Keep this step last!
+ - ps: if (($env:CONFIGURATION) -eq "Debug" -And ($env:coverage) -eq "1" ) { .\tools\misc\installOpenCppCoverage.ps1 }
+
+
+before_build:
+ # We need to modify PATH again, because it was reset since the "init" step
+ - set PATH=C:\Python35;C:\Python35\Scripts;%PATH%
+ - set CXXFLAGS=%additional_flags%
+ # If we are building examples/extra-tests, we need to regenerate the amalgamated files
+ - cmd: if "%examples%"=="1" ( python .\tools\scripts\generateAmalgamatedFiles.py )
+ # 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://help.appveyor.com/discussions/questions/3888-multi-line-cmd-or-powershell-warning-ignore
+ - cmd: .\tools\misc\appveyorBuildConfigurationScript.bat
+
+
+# build with MSBuild
+build:
+ project: Build\Catch2.sln # path to Visual Studio solution or project
+ parallel: true # enable MSBuild parallel builds
+ verbosity: normal # MSBuild verbosity level {quiet|minimal|normal|detailed}
+
+test_script:
+ - set CTEST_OUTPUT_ON_FAILURE=1
+ - cmd: .\tools\misc\appveyorTestRunScript.bat
+
+
+# Sadly we cannot use the standard "dimensions" based approach towards
+# specifying the different builds, as there is no way to add one-offs
+# builds afterwards. This means that we will painfully specify each
+# build explicitly.
+environment:
+ matrix:
+ - FLAVOR: VS 2019 x64 Debug Coverage Examples
+ APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
+ examples: 1
+ coverage: 1
+ platform: x64
+ configuration: Debug
+
+ - FLAVOR: VS 2019 x64 Debug WMain
+ APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
+ wmain: 1
+ additional_flags: "/D_UNICODE /DUNICODE"
+ platform: x64
+ configuration: Debug
+
+ - FLAVOR: VS 2019 x64 Debug Latest Strict
+ APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
+ additional_flags: "/permissive- /std:c++latest"
+ platform: x64
+ configuration: Debug
+
+ - FLAVOR: VS 2017 x64 Debug
+ APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
+ platform: x64
+ configuration: Debug
+
+ - FLAVOR: VS 2017 x64 Release Coverage
+ APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
+ coverage: 1
+ platform: x64
+ configuration: Debug