-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
83 lines (63 loc) · 1.96 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# version string format -- This will be overwritten later anyway
version: "{build}"
branches:
except:
- /dev-travis.+/
os:
- Visual Studio 2019
environment:
matrix:
# - additional_flags: "/permissive- /std:c++latest"
# wmain: 0
#
- additional_flags: ""
wmain: 0
#
# - additional_flags: "/D_UNICODE /DUNICODE"
# wmain: 1
# coverage: 0
matrix:
exclude:
- os: Visual Studio 2015
additional_flags: "/permissive- /std:c++latest"
- os: Visual Studio 2015
additional_flags: "/D_UNICODE /DUNICODE"
# Exclude unwanted coverage configurations
- coverage: 1
platform: Win32
- coverage: 1
os: Visual Studio 2015
- coverage: 1
configuration: Release
# Exclude unwanted examples configurations
- examples: 1
platform: Win32
- examples: 1
os: Visual Studio 2015
- examples: 1
configuration: Release
# Win32 and x64 are CMake-compatible solution platform names.
# This allows us to pass %PLATFORM% to CMake -A.
platform:
- x64
- Win32
# build Configurations, i.e. Debug, Release, etc.
configuration:
- Release
# - Debug
#Cmake will autodetect the compiler, but we set the arch
before_build:
- choco upgrade cmake
- set path=C:\Program Files\CMake\bin;%path%
- set CXXFLAGS=%additional_flags%
# 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: cmake -H. -BBuild -A%PLATFORM% -DUSE_WMAIN=%wmain% || exit /b !ERRORLEVEL!
build_script:
- cd Build
- cmake ..
- cmake --build . --config %CONFIGURATION%
test_script:
- set CTEST_OUTPUT_ON_FAILURE=1
- cmd: ..\misc\appveyorTestRunScript.bat