-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
275 lines (269 loc) · 8.76 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
# https://docs.microsoft.com/de-de/azure/devops/pipelines/agents/hosted?view=azure-devops#software
trigger:
- master
variables:
python-version: "3.7"
conan-pkg: "conan"
cpt-pkg: "conan_package_tools"
bpt-pkg: "bincrafters_package_tools"
jobs:
- job: Linux
pool:
vmImage: Ubuntu-16.04
variables:
CONAN_TOTAL_PAGES: 4
strategy:
matrix:
Gcc 4.9 x86:
CONAN_GCC_VERSIONS: 4.9
CONAN_DOCKER_IMAGE: conanio/gcc49
CONAN_ARCHS: "x86"
CONAN_CURRENT_PAGE: 1
Gcc 4.9 x86_64:
CONAN_GCC_VERSIONS: 4.9
CONAN_DOCKER_IMAGE: conanio/gcc49
CONAN_ARCHS: "x86_64"
CONAN_CURRENT_PAGE: 2
Gcc 5 x86:
CONAN_GCC_VERSIONS: 5
CONAN_DOCKER_IMAGE: conanio/gcc5
CONAN_ARCHS: "x86"
CONAN_CURRENT_PAGE: 3
Gcc 5 x86_64:
CONAN_GCC_VERSIONS: 5
CONAN_DOCKER_IMAGE: conanio/gcc5
CONAN_ARCHS: "x86_64"
CONAN_CURRENT_PAGE: 4
Gcc 6 x86:
CONAN_GCC_VERSIONS: 6
CONAN_DOCKER_IMAGE: conanio/gcc6
CONAN_ARCHS: "x86"
CONAN_CURRENT_PAGE: 1
Gcc 6 x86_64:
CONAN_GCC_VERSIONS: 6
CONAN_DOCKER_IMAGE: conanio/gcc6
CONAN_ARCHS: "x86_64"
CONAN_CURRENT_PAGE: 2
Gcc 7 x86:
CONAN_GCC_VERSIONS: 7
CONAN_DOCKER_IMAGE: conanio/gcc7
CONAN_ARCHS: "x86"
CONAN_CURRENT_PAGE: 3
Gcc 7 x86_64:
CONAN_GCC_VERSIONS: 7
CONAN_DOCKER_IMAGE: conanio/gcc7
CONAN_ARCHS: "x86_64"
CONAN_CURRENT_PAGE: 4
Gcc 8 x86:
CONAN_GCC_VERSIONS: 8
CONAN_DOCKER_IMAGE: conanio/gcc8
CONAN_ARCHS: "x86"
CONAN_CURRENT_PAGE: 1
Gcc 8 x86_64:
CONAN_GCC_VERSIONS: 8
CONAN_DOCKER_IMAGE: conanio/gcc8
CONAN_ARCHS: "x86_64"
CONAN_CURRENT_PAGE: 2
Clang 3.9 x86:
CONAN_CLANG_VERSIONS: 3.9
CONAN_DOCKER_IMAGE: conanio/clang39
CONAN_ARCHS: "x86"
CONAN_CURRENT_PAGE: 3
Clang 3.9 x86_64:
CONAN_CLANG_VERSIONS: 3.9
CONAN_DOCKER_IMAGE: conanio/clang39
CONAN_ARCHS: "x86_64"
CONAN_CURRENT_PAGE: 4
Clang 4.0 x86:
CONAN_CLANG_VERSIONS: 4.0
CONAN_DOCKER_IMAGE: conanio/clang40
CONAN_ARCHS: "x86"
CONAN_CURRENT_PAGE: 1
Clang 4.0 x86_64:
CONAN_CLANG_VERSIONS: 4.0
CONAN_DOCKER_IMAGE: conanio/clang40
CONAN_ARCHS: "x86_64"
CONAN_CURRENT_PAGE: 2
Clang 5.0 x86:
CONAN_CLANG_VERSIONS: 5.0
CONAN_DOCKER_IMAGE: conanio/clang50
CONAN_ARCHS: "x86"
CONAN_CURRENT_PAGE: 3
Clang 5.0 x86_64:
CONAN_CLANG_VERSIONS: 5.0
CONAN_DOCKER_IMAGE: conanio/clang50
CONAN_ARCHS: "x86_64"
CONAN_CURRENT_PAGE: 4
Clang 6.0 x86:
CONAN_CLANG_VERSIONS: 6.0
CONAN_DOCKER_IMAGE: conanio/clang60
CONAN_ARCHS: "x86"
CONAN_CURRENT_PAGE: 1
Clang 6.0 x86_64:
CONAN_CLANG_VERSIONS: 6.0
CONAN_DOCKER_IMAGE: conanio/clang60
CONAN_ARCHS: "x86_64"
CONAN_CURRENT_PAGE: 2
Clang 7.0 x86:
CONAN_CLANG_VERSIONS: 7.0
CONAN_DOCKER_IMAGE: conanio/clang7
CONAN_ARCHS: "x86"
CONAN_CURRENT_PAGE: 3
Clang 7.0 x86_64:
CONAN_CLANG_VERSIONS: 7.0
CONAN_DOCKER_IMAGE: conanio/clang7
CONAN_ARCHS: "x86_64"
CONAN_CURRENT_PAGE: 4
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(python-version)
- script: |
export PATH="$PATH:/home/vsts/.local/bin"
sudo apt install -y python3-setuptools
pip install --user --upgrade pip
pip install --user $(conan-pkg)
pip install --user $(cpt-pkg) $(bpt-pkg)
conan user
python build.py
displayName: conan create package
- job: macOS1013
pool:
vmImage: macOS-10.13
strategy:
matrix:
# Xcode Version overview: https://gist.github.com/yamaya/2924292
# available versions: https://github.com/Microsoft/azure-pipelines-image-generation/blob/master/images/macos/macos-10.13-Readme.md
Apple Clang 8.1:
CONAN_APPLE_CLANG_VERSIONS: 8.1
XCODE_VERSION: 8.3.3
Apple Clang 9.0:
CONAN_APPLE_CLANG_VERSIONS: 9.0
XCODE_VERSION: 9.2
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(python-version)
- script: |
/bin/bash -c "sudo xcode-select -s /Applications/Xcode_$(XCODE_VERSION).app/Contents/Developer"
export PATH=$PATH:$HOME/.local/bin
pip install --upgrade pip
brew update || brew update
brew install cmake || true
pip install --upgrade $(conan-pkg)
pip install $(cpt-pkg) $(bpt-pkg)
conan user
python build.py
displayName: conan create package
- job: macOS1014
pool:
vmImage: macOS-10.14
strategy:
matrix:
# Xcode Version overview: https://gist.github.com/yamaya/2924292
# available versions: https://github.com/Microsoft/azure-pipelines-image-generation/blob/master/images/macos/macos-10.14-Readme.md
Apple Clang 9.1:
CONAN_APPLE_CLANG_VERSIONS: 9.1
XCODE_VERSION: 9.4.1
Apple Clang 10.0:
CONAN_APPLE_CLANG_VERSIONS: 10.0
XCODE_VERSION: 10.1
Apple Clang 10.0.1:
CONAN_APPLE_CLANG_VERSIONS: 10.0
XCODE_VERSION: 10.2
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(python-version)
- script: |
/bin/bash -c "sudo xcode-select -s /Applications/Xcode_$(XCODE_VERSION).app/Contents/Developer"
export PATH=$PATH:$HOME/.local/bin
pip install --upgrade pip
brew update || brew update
brew install cmake || true
pip install --upgrade $(conan-pkg)
pip install $(cpt-pkg) $(bpt-pkg)
conan user
python build.py
displayName: conan create package
- job: Windows2012
pool:
vmImage: vs2015-win2012r2
strategy:
matrix:
VStudio 2013 Release:
CONAN_VISUAL_VERSIONS: 12
CONAN_BUILD_TYPES: Release
VStudio 2013 Debug:
CONAN_VISUAL_VERSIONS: 12
CONAN_BUILD_TYPES: Debug
VStudio 2015 Release:
CONAN_VISUAL_VERSIONS: 14
CONAN_BUILD_TYPES: Release
VStudio 2015 Debug:
CONAN_VISUAL_VERSIONS: 14
CONAN_BUILD_TYPES: Debug
steps:
- powershell: |
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install -y python
displayName: install python 3
- script: |
set PYTHON_HOME=C:\Python37
set PATH=%PYTHON_HOME%\Scripts;%PATH%
%PYTHON_HOME%/python -m pip install --upgrade pip
%PYTHON_HOME%/python -m pip install $(conan-pkg)
%PYTHON_HOME%/python -m pip install $(cpt-pkg) $(bpt-pkg)
conan user
%PYTHON_HOME%/python build.py
displayName: conan create package
- job: Windows2016
pool:
vmImage: vs2017-win2016
strategy:
matrix:
VStudio 2017 Release:
CONAN_VISUAL_VERSIONS: 15
CONAN_BUILD_TYPES: Release
VStudio 2017 Debug:
CONAN_VISUAL_VERSIONS: 15
CONAN_BUILD_TYPES: Debug
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(python-version)
- script: |
python -m pip install --upgrade pip
python -m pip install $(conan-pkg)
python -m pip install $(cpt-pkg) $(bpt-pkg)
conan user
python build.py
displayName: conan create package
- job: MinGW
pool:
vmImage: vs2017-win2016
strategy:
matrix:
GCC 7 Release:
MINGW_CONFIGURATIONS: '7@x86_64@seh@posix'
CONAN_BUILD_TYPES: Release
GCC 7 Debug:
MINGW_CONFIGURATIONS: '7@x86_64@seh@posix'
CONAN_BUILD_TYPES: Debug
GCC 8 Release:
MINGW_CONFIGURATIONS: '8@x86_64@seh@posix'
CONAN_BUILD_TYPES: Release
GCC 8 Debug:
MINGW_CONFIGURATIONS: '8@x86_64@seh@posix'
CONAN_BUILD_TYPES: Debug
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(python-version)
- script: |
python -m pip install --upgrade pip
python -m pip install $(conan-pkg)
python -m pip install $(cpt-pkg) $(bpt-pkg)
conan user
python build.py
displayName: conan create package