forked from redboltz/mqtt_cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
135 lines (130 loc) · 3.28 KB
/
azure-pipelines.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
tags:
include:
- '*'
branches:
include:
- master
pr:
- '*'
pool:
vmImage: 'windows-2019'
strategy:
matrix:
ExamplesTls:
MQTT_USE_TLS: ON
MQTT_USE_WS: OFF
MQTT_USE_STR_CHECK: ON
MQTT_TEST_1: OFF
MQTT_TEST_2: OFF
MQTT_TEST_3: OFF
MQTT_TEST_4: OFF
MQTT_TEST_5: OFF
MQTT_TEST_6: OFF
MQTT_BUILD_EXAMPLES: ON
ExamplesWs:
MQTT_USE_TLS: OFF
MQTT_USE_WS: ON
MQTT_USE_STR_CHECK: ON
MQTT_TEST_1: OFF
MQTT_TEST_2: OFF
MQTT_TEST_3: OFF
MQTT_TEST_4: OFF
MQTT_TEST_5: OFF
MQTT_TEST_6: OFF
MQTT_BUILD_EXAMPLES: ON
TestGroup1:
MQTT_USE_TLS: ON
MQTT_USE_WS: OFF
MQTT_USE_STR_CHECK: OFF
MQTT_TEST_1: ON
MQTT_TEST_2: OFF
MQTT_TEST_3: OFF
MQTT_TEST_4: OFF
MQTT_TEST_5: OFF
MQTT_TEST_6: OFF
MQTT_BUILD_EXAMPLES: OFF
TestGroup2:
MQTT_USE_TLS: OFF
MQTT_USE_WS: ON
MQTT_USE_STR_CHECK: ON
MQTT_TEST_1: OFF
MQTT_TEST_2: ON
MQTT_TEST_3: OFF
MQTT_TEST_4: OFF
MQTT_TEST_5: OFF
MQTT_TEST_6: OFF
MQTT_BUILD_EXAMPLES: OFF
TestGroup3:
MQTT_USE_TLS: ON
MQTT_USE_WS: OFF
MQTT_USE_STR_CHECK: ON
MQTT_TEST_1: OFF
MQTT_TEST_2: OFF
MQTT_TEST_3: ON
MQTT_TEST_4: OFF
MQTT_TEST_5: OFF
MQTT_TEST_6: OFF
MQTT_BUILD_EXAMPLES: OFF
TestGroup4:
MQTT_USE_TLS: OFF
MQTT_USE_WS: ON
MQTT_USE_STR_CHECK: ON
MQTT_TEST_1: OFF
MQTT_TEST_2: OFF
MQTT_TEST_3: OFF
MQTT_TEST_4: ON
MQTT_TEST_5: OFF
MQTT_TEST_6: OFF
MQTT_BUILD_EXAMPLES: OFF
TestGroup5:
MQTT_USE_TLS: OFF
MQTT_USE_WS: ON
MQTT_USE_STR_CHECK: ON
MQTT_TEST_1: OFF
MQTT_TEST_2: OFF
MQTT_TEST_3: OFF
MQTT_TEST_4: OFF
MQTT_TEST_5: ON
MQTT_TEST_6: OFF
MQTT_BUILD_EXAMPLES: OFF
TestGroup6:
MQTT_USE_TLS: ON
MQTT_USE_WS: OFF
MQTT_USE_STR_CHECK: ON
MQTT_TEST_1: OFF
MQTT_TEST_2: OFF
MQTT_TEST_3: OFF
MQTT_TEST_4: OFF
MQTT_TEST_5: OFF
MQTT_TEST_6: ON
MQTT_BUILD_EXAMPLES: OFF
TestGroup7:
MQTT_USE_TLS: OFF
MQTT_USE_WS: ON
MQTT_USE_STR_CHECK: ON
MQTT_TEST_1: OFF
MQTT_TEST_2: OFF
MQTT_TEST_3: OFF
MQTT_TEST_4: OFF
MQTT_TEST_5: OFF
MQTT_TEST_6: ON
MQTT_BUILD_EXAMPLES: OFF
steps:
- script: |
choco install --confirm --limitoutput --no-progress openssl
displayName: 'install openssl'
- script: |
git submodule update --init --recursive
mkdir build
cd build
set CL=/D_WIN32_WINNT#0x0601
cmake -A x64 -DMQTT_USE_TLS=%MQTT_USE_TLS% -DMQTT_USE_WS=%MQTT_USE_WS% -DMQTT_USE_STR_CHECK=%MQTT_USE_STR_CHECK% -DMQTT_TEST_1=%MQTT_TEST_1% -DMQTT_TEST_2=%MQTT_TEST_2% -DMQTT_TEST_3=%MQTT_TEST_3% -DMQTT_TEST_4=%MQTT_TEST_4% -DMQTT_TEST_5=%MQTT_TEST_5% -DMQTT_TEST_6=%MQTT_TEST_6% -DMQTT_BUILD_EXAMPLES=%MQTT_BUILD_EXAMPLES% ..
cmake --build . --config Release -- -verbosity:minimal
cd test
set PATH=%BOOST_ROOT%\lib;%PATH%
ctest -VV
displayName: 'cmake test'