Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

.azure-pipelines.yml 6.0 KB

You have to be logged in to leave a comment. Sign In
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
  1. # Configuration for Azure Pipelines
  2. ########################################################################################
  3. # Only build the master, 6.x and 5.4 branches, tags, and PRs (on by default)
  4. # to avoid building random branches in the repository until a PR is opened.
  5. trigger:
  6. branches:
  7. include:
  8. - master
  9. - 6.?
  10. - refs/tags/*
  11. # Global variables
  12. variables:
  13. # disable auto-display of GMT plots
  14. GMT_END_SHOW: off
  15. jobs:
  16. # Lint Checker
  17. - job:
  18. displayName: 'Lint Checker'
  19. timeoutInMinutes: 360
  20. condition: eq(variables['Build.Reason'], 'Schedule')
  21. pool:
  22. vmImage: 'ubuntu-18.04'
  23. steps:
  24. - bash: |
  25. set -x -e
  26. sudo snap install cppcheck
  27. cppcheck --version
  28. displayName: Install cppcheck
  29. - bash: bash admin/run_cppcheck.sh src
  30. displayName: Run cppcheck
  31. # Linux - Compile only
  32. ########################################################################################
  33. - job:
  34. displayName: 'Linux | Compile only'
  35. condition: ne(variables['Build.Reason'], 'Schedule')
  36. pool:
  37. vmImage: 'ubuntu-18.04'
  38. variables:
  39. BUILD_DOCS: false
  40. DEPLOY_DOCS: false
  41. PACKAGE: false
  42. RUN_TESTS: false
  43. steps:
  44. - template: ci/azure-pipelines-linux.yml
  45. # Linux - Compile only (no GDAL et. al.)
  46. ########################################################################################
  47. - job:
  48. displayName: 'Linux | Compile only (GDAL et. al. excluded)'
  49. condition: ne(variables['Build.Reason'], 'Schedule')
  50. pool:
  51. vmImage: 'ubuntu-18.04'
  52. variables:
  53. BUILD_DOCS: false
  54. DEPLOY_DOCS: false
  55. PACKAGE: false
  56. RUN_TESTS: false
  57. EXCLUDE_OPTIONAL: true
  58. steps:
  59. - template: ci/azure-pipelines-linux.yml
  60. # Linux - Build docs + Deploy docs + Package
  61. ########################################################################################
  62. - job:
  63. displayName: 'Linux | Build docs + Deploy docs + Package'
  64. # Deploy documentation in master and 6.x branches
  65. condition: in(variables['Build.SourceBranchName'], 'master', '6.1', '6.2', '6.3', '6.4', '6.5')
  66. pool:
  67. vmImage: 'ubuntu-18.04'
  68. variables:
  69. BUILD_DOCS: true
  70. DEPLOY_DOCS: true
  71. PACKAGE: true
  72. RUN_TESTS: false
  73. steps:
  74. - template: ci/azure-pipelines-linux.yml
  75. # Linux - Test
  76. ########################################################################################
  77. - job:
  78. displayName: 'Linux | Test'
  79. condition: eq(variables['Build.Reason'], 'Schedule')
  80. pool:
  81. vmImage: 'ubuntu-18.04'
  82. variables:
  83. BUILD_DOCS: false
  84. DEPLOY_DOCS: false
  85. PACKAGE: false
  86. RUN_TESTS: true
  87. steps:
  88. - template: ci/azure-pipelines-linux.yml
  89. # Mac - Compile only
  90. ########################################################################################
  91. - job:
  92. displayName: 'Mac | Compile only'
  93. condition: ne(variables['Build.Reason'], 'Schedule')
  94. pool:
  95. vmImage: 'macOS-10.15'
  96. variables:
  97. BUILD_DOCS: false
  98. DEPLOY_DOCS: false
  99. PACKAGE: false
  100. RUN_TESTS: false
  101. steps:
  102. - template: ci/azure-pipelines-mac.yml
  103. # Mac - Build docs + Package
  104. ########################################################################################
  105. - job:
  106. displayName: 'Mac | Build docs + Package'
  107. condition: eq(variables['Build.Reason'], 'Schedule')
  108. pool:
  109. vmImage: 'macOS-10.15'
  110. variables:
  111. BUILD_DOCS: true
  112. DEPLOY_DOCS: false
  113. PACKAGE: true
  114. RUN_TESTS: false
  115. steps:
  116. - template: ci/azure-pipelines-mac.yml
  117. # Mac - Test
  118. ########################################################################################
  119. - job:
  120. displayName: 'Mac | Test'
  121. condition: eq(variables['Build.Reason'], 'Schedule')
  122. pool:
  123. vmImage: 'macOS-10.15'
  124. variables:
  125. BUILD_DOCS: false
  126. DEPLOY_DOCS: false
  127. PACKAGE: false
  128. RUN_TESTS: true
  129. steps:
  130. - template: ci/azure-pipelines-mac.yml
  131. # Windows - Compile only
  132. ########################################################################################
  133. - job:
  134. displayName: 'Windows | Compile only'
  135. condition: ne(variables['Build.Reason'], 'Schedule')
  136. timeoutInMinutes: 120
  137. pool:
  138. vmImage: 'windows-2019'
  139. variables:
  140. BUILD_DOCS: false
  141. DEPLOY_DOCS: false
  142. PACKAGE: false
  143. TEST: false
  144. steps:
  145. - template: ci/azure-pipelines-windows.yml
  146. # Windows - Build Docs + Package
  147. ########################################################################################
  148. - job:
  149. displayName: 'Windows | Build Docs + Package'
  150. condition: eq(variables['Build.Reason'], 'Schedule')
  151. timeoutInMinutes: 120
  152. pool:
  153. vmImage: 'windows-2019'
  154. variables:
  155. BUILD_DOCS: true
  156. DEPLOY_DOCS: false
  157. PACKAGE: true
  158. TEST: false
  159. steps:
  160. - template: ci/azure-pipelines-windows.yml
  161. # Windows - Test
  162. ########################################################################################
  163. - job:
  164. displayName: 'Windows | Test'
  165. condition: eq(variables['Build.Reason'], 'Schedule')
  166. timeoutInMinutes: 180
  167. pool:
  168. vmImage: 'windows-2019'
  169. variables:
  170. BUILD_DOCS: false
  171. DEPLOY_DOCS: false
  172. PACKAGE: false
  173. TEST: true
  174. steps:
  175. - template: ci/azure-pipelines-windows.yml
  176. # Docker
  177. ########################################################################################
  178. - job:
  179. displayName: 'Docker | '
  180. condition: eq(variables['Build.Reason'], 'Schedule')
  181. variables:
  182. BUILD_DOCS: false
  183. DEPLOY_DOCS: false
  184. PACKAGE: false
  185. TEST: false
  186. strategy:
  187. matrix:
  188. Ubuntu1404: # CMake 2.8.12 + GNU 4.8.4
  189. containerImage: ubuntu:14.04
  190. Ubuntu1604: # CMake 3.5.1 + GNU 5.4.0
  191. containerImage: ubuntu:16.04
  192. Ubuntu1804: # CMake 3.10.2 + GNU 7.4.0
  193. containerImage: ubuntu:18.04
  194. container:
  195. image: $[ variables['containerImage'] ]
  196. # See https://github.com/microsoft/azure-pipelines-agent/issues/2043#issuecomment-500451567
  197. # for docker sudo workaround
  198. options: "--name ci-container -v /usr/bin/docker:/tmp/docker:ro"
  199. steps:
  200. - script: |
  201. /tmp/docker exec -t -u 0 ci-container \
  202. sh -c "apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confold" -y install sudo"
  203. displayName: Set up sudo
  204. - template: ci/azure-pipelines-linux.yml
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...