Debian Codegraph @

3rdparty/catch2/appveyor.yml

raw symbols SCIP
1 version: "{build}-{branch}"
2
3 # If we ever get a backlog larger than clone_depth, builds will fail
4 # spuriously. I do not think we will ever get 20 deep commits deep though.
5 clone_depth: 20
6
7 # We want to build everything, except for branches that are explicitly
8 # for messing around with travis.
9 branches:
10 except:
11 - /dev-travis.+/
12
13
14 # We need a more up to date pip because Python 2.7 is EOL soon
15 init:
16 - set PATH=C:\Python35;C:\Python35\Scripts;%PATH%
17
18
19 install:
20 - ps: if (($env:CONFIGURATION) -eq "Debug" -And ($env:coverage) -eq "1" ) { pip --disable-pip-version-check install codecov }
21 # This removes our changes to PATH. Keep this step last!
22 - ps: if (($env:CONFIGURATION) -eq "Debug" -And ($env:coverage) -eq "1" ) { .\tools\misc\installOpenCppCoverage.ps1 }
23
24
25 before_build:
26 # We need to modify PATH again, because it was reset since the "init" step
27 - set PATH=C:\Python35;C:\Python35\Scripts;%PATH%
28 - set CXXFLAGS=%additional_flags%
29 # If we are building examples/extra-tests, we need to regenerate the amalgamated files
30 - cmd: if "%examples%"=="1" ( python .\tools\scripts\generateAmalgamatedFiles.py )
31 # Indirection because appveyor doesn't handle multiline batch scripts properly
32 # https://stackoverflow.com/questions/37627248/how-to-split-a-command-over-multiple-lines-in-appveyor-yml/37647169#37647169
33 # https://help.appveyor.com/discussions/questions/3888-multi-line-cmd-or-powershell-warning-ignore
34 - cmd: .\tools\misc\appveyorBuildConfigurationScript.bat
35
36
37 # build with MSBuild
38 build:
39 project: Build\Catch2.sln # path to Visual Studio solution or project
40 parallel: true # enable MSBuild parallel builds
41 verbosity: normal # MSBuild verbosity level {quiet|minimal|normal|detailed}
42
43 test_script:
44 - set CTEST_OUTPUT_ON_FAILURE=1
45 - cmd: .\tools\misc\appveyorTestRunScript.bat
46
47
48 # Sadly we cannot use the standard "dimensions" based approach towards
49 # specifying the different builds, as there is no way to add one-offs
50 # builds afterwards. This means that we will painfully specify each
51 # build explicitly.
52 environment:
53 matrix:
54 - FLAVOR: VS 2019 x64 Debug Coverage Examples
55 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
56 examples: 1
57 coverage: 1
58 platform: x64
59 configuration: Debug
60
61 - FLAVOR: VS 2019 x64 Debug WMain
62 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
63 wmain: 1
64 additional_flags: "/D_UNICODE /DUNICODE"
65 platform: x64
66 configuration: Debug
67
68 - FLAVOR: VS 2019 x64 Debug Latest Strict
69 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
70 additional_flags: "/permissive- /std:c++latest"
71 platform: x64
72 configuration: Debug
73
74 - FLAVOR: VS 2017 x64 Debug
75 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
76 platform: x64
77 configuration: Debug
78
79 - FLAVOR: VS 2017 x64 Release Coverage
80 APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
81 coverage: 1
82 platform: x64
83 configuration: Debug