2017-02-14 09:37:37 +01:00
|
|
|
# version string format -- This will be overwritten later anyway
|
|
|
|
version: "{build}"
|
|
|
|
|
2017-11-05 12:46:04 +01:00
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- /dev-travis.+/
|
|
|
|
|
2017-02-14 09:37:37 +01:00
|
|
|
os:
|
2017-04-06 11:01:49 +02:00
|
|
|
- Visual Studio 2017
|
2017-04-20 21:32:50 +02:00
|
|
|
- Visual Studio 2015
|
|
|
|
|
|
|
|
environment:
|
|
|
|
matrix:
|
|
|
|
- additional_flags: "/permissive- /std:c++latest"
|
2017-05-11 13:00:03 +02:00
|
|
|
wmain: 0
|
|
|
|
|
2017-04-20 21:32:50 +02:00
|
|
|
- additional_flags: ""
|
2017-05-11 13:00:03 +02:00
|
|
|
wmain: 0
|
|
|
|
|
|
|
|
- additional_flags: "/D_UNICODE /DUNICODE"
|
|
|
|
wmain: 1
|
2017-04-20 21:32:50 +02:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
exclude:
|
2017-11-05 10:05:57 +01:00
|
|
|
- os: Visual Studio 2015
|
|
|
|
additional_flags: "/permissive- /std:c++latest"
|
|
|
|
|
2017-02-14 09:37:37 +01:00
|
|
|
init:
|
|
|
|
- git config --global core.autocrlf input
|
|
|
|
|
2017-12-03 13:03:52 +01:00
|
|
|
install:
|
|
|
|
- ps: if (($env:CONFIGURATION) -eq "Debug" ) { python -m pip install codecov }
|
|
|
|
- ps: if (($env:CONFIGURATION) -eq "Debug" ) { .\misc\installOpenCppCoverage.ps1 }
|
2017-02-14 09:37:37 +01:00
|
|
|
|
|
|
|
# Win32 and x64 are CMake-compatible solution platform names.
|
|
|
|
# This allows us to pass %PLATFORM% to CMake -A.
|
|
|
|
platform:
|
|
|
|
- Win32
|
|
|
|
- x64
|
|
|
|
|
|
|
|
# build Configurations, i.e. Debug, Release, etc.
|
|
|
|
configuration:
|
|
|
|
- Debug
|
|
|
|
- Release
|
|
|
|
|
|
|
|
#Cmake will autodetect the compiler, but we set the arch
|
|
|
|
before_build:
|
2017-04-20 21:32:50 +02:00
|
|
|
- set CXXFLAGS=%additional_flags%
|
2017-12-03 13:03:52 +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
|
|
|
|
- cmd: .\misc\appveyorBuildConfigurationScript.bat
|
|
|
|
|
2017-02-14 09:37:37 +01:00
|
|
|
|
|
|
|
# build with MSBuild
|
|
|
|
build:
|
|
|
|
project: Build\CatchSelfTest.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:
|
2017-11-22 16:11:35 +01:00
|
|
|
- set CTEST_OUTPUT_ON_FAILURE=1
|
2017-12-03 13:03:52 +01:00
|
|
|
- cmd: .\misc\appveyorTestRunScript.bat
|