2017-02-14 03:37:37 -05:00
|
|
|
# version string format -- This will be overwritten later anyway
|
|
|
|
version: "{build}"
|
|
|
|
|
|
|
|
os:
|
2017-04-06 05:01:49 -04:00
|
|
|
- Visual Studio 2017
|
2017-04-20 15:32:50 -04:00
|
|
|
- Visual Studio 2015
|
|
|
|
- Visual Studio 2013
|
|
|
|
|
|
|
|
environment:
|
|
|
|
matrix:
|
|
|
|
- additional_flags: "/permissive- /std:c++latest"
|
2017-05-11 07:00:03 -04:00
|
|
|
wmain: 0
|
|
|
|
|
2017-04-20 15:32:50 -04:00
|
|
|
- additional_flags: ""
|
2017-05-11 07:00:03 -04:00
|
|
|
wmain: 0
|
|
|
|
|
|
|
|
- additional_flags: "/D_UNICODE /DUNICODE"
|
|
|
|
wmain: 1
|
2017-04-20 15:32:50 -04:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
exclude:
|
|
|
|
-
|
|
|
|
additional_flags: "/permissive- /std:c++latest"
|
|
|
|
os: Visual Studio 2015
|
|
|
|
-
|
|
|
|
additional_flags: "/permissive- /std:c++latest"
|
|
|
|
os: Visual Studio 2013
|
2017-02-14 03:37:37 -05:00
|
|
|
|
|
|
|
init:
|
|
|
|
- git config --global core.autocrlf input
|
|
|
|
# Set build version to git commit-hash
|
|
|
|
- ps: Update-AppveyorBuild -Version "$($env:APPVEYOR_REPO_BRANCH) - $($env:APPVEYOR_REPO_COMMIT)"
|
|
|
|
|
|
|
|
# fetch repository as zip archive
|
|
|
|
shallow_clone: true
|
|
|
|
|
|
|
|
# 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 15:32:50 -04:00
|
|
|
- set CXXFLAGS=%additional_flags%
|
2017-05-11 07:00:03 -04:00
|
|
|
- cmake -H. -BBuild -A%PLATFORM% -DUSE_WMAIN=%wmain%
|
2017-02-14 03:37:37 -05: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:
|
|
|
|
- cd Build
|
|
|
|
- ctest -V -j 2 -C %CONFIGURATION%
|