forked from danielaparker/jsoncons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
103 lines (89 loc) · 2.36 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
version: '{build}'
environment:
vsversion: none
arch: default
matrix:
- platform: vs
vsversion: 2015
arch: x86
FLAGS: ""
- platform: vs
vsversion: 2015
arch: x86
FLAGS: ""
- platform: vs
vsversion: 2015
arch: x86
FLAGS: "/permissive- /std:c++latest /utf-8"
- platform: vs
vsversion: 2015
arch: x64
FLAGS: ""
- platform: vs
vsversion: 2017
arch: x64
FLAGS: ""
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- platform: vs
vsversion: 2017
arch: x86
FLAGS: ""
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- platform: vs
vsversion: 2017
arch: x64
FLAGS: "/permissive- /std:c++latest /utf-8"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
# - platform: vs
# vsversion: 2017
# arch: ARM
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
vsversion: 2019
configuration: Debug
platform: x64
CXX_FLAGS: ""
LINKER_FLAGS: ""
GENERATOR: Visual Studio 16 2019
init:
- git config --global core.autocrlf input
before_build:
# Remove the following from the path, as it will interfere with
# the MinGW builds
- set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
- if %platform%==msvc call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat"
- if %platform%==msvc cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=%P%
- if %platform%==vs (
set "makecommand=Visual Studio"
)
- set "vcx=false"
- set "vcs=false"
- if %platform%==vs (
set "vcx=true"
)
- if %vsversion%==2015 (
set "makecommand=%makecommand% 14 %vsversion%"
)
- if %vsversion%==2017 (
set "makecommand=%makecommand% 15 %vsversion%"
)
- if %vsversion%==2019 (
set "makecommand=%GENERATOR%"
)
- if %arch%==x64 (
set "makecommand=%makecommand% Win64"
)
- if %arch%==ARM (
set "makecommand=%makecommand% ARM"
)
- cmake -G "%makecommand%" -D BUILD_TESTS=1 .
build_script:
- cmake --build . --target test_jsoncons --config Release
- cd tests
test_script:
- set "testplatform=%platform%"
# Can not run ARM builds on x86/x64 build images
- if %arch%==ARM (
set "testplatform=none"
)
- if %testplatform%==vs .\Release\test_jsoncons