blob: f6fce08afa7a97b502bf787a3aba1f96031ce582 [file] [log] [blame]
Martin Hořeňovský29fa1ed2017-02-14 09:37:37 +01001# version string format -- This will be overwritten later anyway
2version: "{build}"
3
Martin Hořeňovský29fa1ed2017-02-14 09:37:37 +01004os:
Martin Hořeňovský09e48302017-04-06 11:01:49 +02005 - Visual Studio 2017
Martin Hořeňovský8f0feaa2017-04-20 21:32:50 +02006 - Visual Studio 2015
7 - Visual Studio 2013
8
9environment:
10 matrix:
11 - additional_flags: "/permissive- /std:c++latest"
12 - additional_flags: ""
13
14matrix:
15 exclude:
16 -
17 additional_flags: "/permissive- /std:c++latest"
18 os: Visual Studio 2015
19 -
20 additional_flags: "/permissive- /std:c++latest"
21 os: Visual Studio 2013
Martin Hořeňovský29fa1ed2017-02-14 09:37:37 +010022
23init:
24 - git config --global core.autocrlf input
25 # Set build version to git commit-hash
26 - ps: Update-AppveyorBuild -Version "$($env:APPVEYOR_REPO_BRANCH) - $($env:APPVEYOR_REPO_COMMIT)"
27
28# fetch repository as zip archive
29shallow_clone: true
30
31# Win32 and x64 are CMake-compatible solution platform names.
32# This allows us to pass %PLATFORM% to CMake -A.
33platform:
34 - Win32
35 - x64
36
37# build Configurations, i.e. Debug, Release, etc.
38configuration:
39 - Debug
40 - Release
41
42#Cmake will autodetect the compiler, but we set the arch
43before_build:
Martin Hořeňovský8f0feaa2017-04-20 21:32:50 +020044 - set CXXFLAGS=%additional_flags%
Martin Hořeňovský29fa1ed2017-02-14 09:37:37 +010045 - cmake -H. -BBuild -A%PLATFORM%
46
47# build with MSBuild
48build:
49 project: Build\CatchSelfTest.sln # path to Visual Studio solution or project
50 parallel: true # enable MSBuild parallel builds
51 verbosity: normal # MSBuild verbosity level {quiet|minimal|normal|detailed}
52
53test_script:
54 - cd Build
55 - ctest -V -j 2 -C %CONFIGURATION%