2019-10-31 16:30:42 +01:00
|
|
|
version: "{build}-{branch}"
|
2017-02-14 09:37:37 +01:00
|
|
|
|
2019-10-31 16:30:42 +01:00
|
|
|
# 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 travis.
|
2017-11-05 12:46:04 +01:00
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- /dev-travis.+/
|
|
|
|
|
2018-03-06 18:33:18 +01:00
|
|
|
|
2019-11-11 23:30:10 +01:00
|
|
|
# We need a more up to date pip because Python 2.7 is EOL soon
|
|
|
|
init:
|
2020-05-06 12:39:26 +02:00
|
|
|
- set PATH=C:\Python35;C:\Python35\Scripts;%PATH%
|
2019-11-11 23:30:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
install:
|
|
|
|
- ps: if (($env:CONFIGURATION) -eq "Debug" -And ($env:coverage) -eq "1" ) { pip --disable-pip-version-check install codecov }
|
2020-10-25 19:57:51 +01:00
|
|
|
# This removes our changes to PATH. Keep this step last!
|
2019-12-06 11:40:53 +01:00
|
|
|
- ps: if (($env:CONFIGURATION) -eq "Debug" -And ($env:coverage) -eq "1" ) { .\tools\misc\installOpenCppCoverage.ps1 }
|
2019-11-11 23:30:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
before_build:
|
2020-10-25 19:57:51 +01:00
|
|
|
# We need to modify PATH again, because it was reset since the "init" step
|
|
|
|
- set PATH=C:\Python35;C:\Python35\Scripts;%PATH%
|
2019-11-11 23:30:10 +01:00
|
|
|
- set CXXFLAGS=%additional_flags%
|
2020-09-08 15:53:08 +02:00
|
|
|
# If we are building examples/extra-tests, we need to regenerate the amalgamated files
|
|
|
|
- cmd: if "%examples%"=="1" ( python .\tools\scripts\generateAmalgamatedFiles.py )
|
2019-11-11 23:30:10 +01:00
|
|
|
# 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
|
2019-12-15 21:17:53 +01:00
|
|
|
- cmd: .\tools\misc\appveyorBuildConfigurationScript.bat
|
2019-11-11 23:30:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
# 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
|
2019-12-15 21:17:53 +01:00
|
|
|
- cmd: .\tools\misc\appveyorTestRunScript.bat
|
2019-11-11 23:30:10 +01:00
|
|
|
|
|
|
|
|
2019-10-31 16:30:42 +01:00
|
|
|
# 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:
|
2020-01-31 14:44:03 +01:00
|
|
|
- FLAVOR: VS 2019 x64 Debug Coverage Examples
|
2019-10-31 16:30:42 +01:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
|
|
|
|
examples: 1
|
2020-01-31 14:44:03 +01:00
|
|
|
coverage: 1
|
2019-10-31 16:30:42 +01:00
|
|
|
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
|