Fix error: ISO C++ forbids in-class initialization of non-const static member 'm_started'
[catch.git] / appveyor.yml
blobd09c1dd58805091f6adc8288ba029382d4674bc7
1 # version string format -- This will be overwritten later anyway
2 version: "{build}"
4 os:
5   - Visual Studio 2017
6   - Visual Studio 2015
7   - Visual Studio 2013
9 environment:
10     matrix:
11         - additional_flags: "/permissive- /std:c++latest"
12           wmain: 0
14         - additional_flags: ""
15           wmain: 0
17         - additional_flags: "/D_UNICODE /DUNICODE"
18           wmain: 1
20 matrix:
21     exclude:
22         -
23             additional_flags: "/permissive- /std:c++latest"
24             os: Visual Studio 2015
25         -
26             additional_flags: "/permissive- /std:c++latest"
27             os: Visual Studio 2013
29 init:
30   - git config --global core.autocrlf input
31   # Set build version to git commit-hash
32   - ps: Update-AppveyorBuild -Version "$($env:APPVEYOR_REPO_BRANCH) - $($env:APPVEYOR_REPO_COMMIT)"
34 # fetch repository as zip archive
35 shallow_clone: true
37 # Win32 and x64 are CMake-compatible solution platform names.
38 # This allows us to pass %PLATFORM% to CMake -A.
39 platform:
40   - Win32
41   - x64
43 # build Configurations, i.e. Debug, Release, etc.
44 configuration:
45   - Debug
46   - Release
48 #Cmake will autodetect the compiler, but we set the arch
49 before_build:
50   - set CXXFLAGS=%additional_flags%
51   - cmake -H. -BBuild -A%PLATFORM% -DUSE_WMAIN=%wmain%
53 # build with MSBuild
54 build:
55   project: Build\CatchSelfTest.sln      # path to Visual Studio solution or project
56   parallel: true                        # enable MSBuild parallel builds
57   verbosity: normal                     # MSBuild verbosity level {quiet|minimal|normal|detailed}
59 test_script:
60   - cd Build
61   - ctest -V -j 2 -C %CONFIGURATION%