forked from ThijsSassen/cdds-cxx
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
276 lines (254 loc) · 9.21 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
schedules:
- cron: "0 0 * * *"
displayName: Daily midnight build
always: true
branches:
include:
- master
variables:
CycloneDDS_URI: "<CycloneDDS><Domain><Internal><EnableExpensiveChecks>all</EnableExpensiveChecks></Internal><Tracing><Verbosity>config</Verbosity><OutputFile>stderr</OutputFile></Tracing></Domain></CycloneDDS>"
MAVEN_CACHE_FOLDER: $(Pipeline.Workspace)/.m2/repository
MAVEN_OPTS: '-Dmaven.repo.local=$(MAVEN_CACHE_FOLDER)'
CONAN_NON_INTERACTIVE: 1
CYCLONE_REPO: https://github.com/eclipse-cyclonedds/cyclonedds.git
CYCLONE_REF: master #need to checkout master as for now there is no tag with 60e5147 in it
IDLPP_REPO: https://github.com/ADLINK-IST/idlpp-cxx.git
IDLPP_REF: idlpp-cxx-1.0.0 #tag to checkout
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-16.04'
strategy:
matrix:
Clang 6.0 Debug:
CC: clang
CXX: clang++
BuildType: Debug
USE_SANITIZER: address
GENERATOR: "Unix Makefiles"
CXX_STDLIB: libstdc++11
Clang 6.0 Release:
CC: clang
CXX: clang++
BuildType: Release
USE_SANITIZER: none
GENERATOR: "Unix Makefiles"
CXX_STDLIB: libstdc++11
GCC 8 Debug:
CC: gcc-8
CXX: g++-8
BuildType: Debug
USE_SANITIZER: none
GENERATOR: "Unix Makefiles"
CXX_STDLIB: libstdc++11
GCC 8 Release:
CC: gcc-8
CXX: g++-8
BuildType: Release
USE_SANITIZER: none
GENERATOR: "Unix Makefiles"
CXX_STDLIB: libstdc++11
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
- script: |
git clone --branch $(CYCLONE_REF) $(CYCLONE_REPO)
git clone --branch $(IDLPP_REF) $(IDLPP_REPO)
displayName: 'Checkout repositories'
- script: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y gcc-8 g++-8
pip install --upgrade pip
pip install conan --upgrade
conan profile new default --detect
conan profile update settings.compiler.libcxx=$(CXX_STDLIB) default
conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
mkdir -p $(Build.SourcesDirectory)/cyclonedds/build
cd $(Build.SourcesDirectory)/cyclonedds/build
conan install -b missing -s arch=x86_64 -s build_type=$(BuildType) ..
mkdir -p $(Build.SourcesDirectory)/build
cd $(Build.SourcesDirectory)/build
conan install -b missing -s arch=x86_64 -s build_type=$(BuildType) ..
displayName: 'Install Build Dependencies'
- template: templates/build_and_test.yml
- job: Windows_VS19
pool:
vmImage: 'windows-2019'
strategy:
matrix:
x86_64 Debug:
BuildType: Debug
GENERATOR: "Visual Studio 16 2019"
ARCH: x86_64
USE_SANITIZER: none
x86_64 Release:
BuildType: Release
GENERATOR: "Visual Studio 16 2019"
ARCH: x86_64
USE_SANITIZER: none
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
- script: |
git clone --branch $(CYCLONE_REF) $(CYCLONE_REPO)
git clone --branch $(IDLPP_REF) $(IDLPP_REPO)
displayName: 'Checkout repositories'
- script: |
pip install --upgrade pip --user
pip install conan --upgrade
conan profile new default --detect
conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
md $(Build.SourcesDirectory)\cyclonedds\build
cd $(Build.SourcesDirectory)\cyclonedds\build
conan install -b missing -s arch=$(ARCH) -s build_type=$(BuildType) ..
md $(Build.SourcesDirectory)\build
cd $(Build.SourcesDirectory)\build
conan install -b missing -s arch=$(ARCH) -s build_type=$(BuildType) ..
displayName: 'Install Build Dependencies'
- template: templates/build_and_test.yml
- job: Windows_VS17
pool:
vmImage: 'vs2017-win2016'
strategy:
matrix:
x86 Release:
BuildType: Release
GENERATOR: "Visual Studio 15 2017"
ARCH: x86
USE_SANITIZER: none
x86_64 Release:
BuildType: Release
GENERATOR: "Visual Studio 15 2017 Win64"
ARCH: x86_64
USE_SANITIZER: none
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
- script: |
git clone --branch $(CYCLONE_REF) $(CYCLONE_REPO)
git clone --branch $(IDLPP_REF) $(IDLPP_REPO)
displayName: 'Checkout repositories'
- script: |
pip install --upgrade pip --user
pip install conan --upgrade
conan profile new default --detect
conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
md $(Build.SourcesDirectory)\cyclonedds\build
cd $(Build.SourcesDirectory)\cyclonedds\build
conan install -b missing -s arch=$(ARCH) -s build_type=$(BuildType) ..
md $(Build.SourcesDirectory)\build
cd $(Build.SourcesDirectory)\build
conan install -b missing -s arch=$(ARCH) -s build_type=$(BuildType) ..
displayName: 'Install Build Dependencies'
- template: templates/build_and_test.yml
- job: MacOS_10_13
pool:
vmImage: 'macOS-10.13'
strategy:
matrix:
Xcode 10.0 Release:
BuildType: Release
USE_SANITIZER: none
GENERATOR: "Unix Makefiles"
CXX_STDLIB: libc++
XCODE: 10
Xcode 9.0 Release:
BuildType: Release
USE_SANITIZER: none
GENERATOR: "Unix Makefiles"
CXX_STDLIB: libc++
XCODE: 9
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
- script: |
git clone --branch $(CYCLONE_REF) $(CYCLONE_REPO)
git clone --branch $(IDLPP_REF) $(IDLPP_REPO)
displayName: 'Checkout repositories'
- bash: |
/bin/bash -c "sudo xcode-select -s /Applications/Xcode_9.app/Contents/Developer"
clang --version
displayName: 'Set Xcode9 as default'
failOnStderr: false
condition: eq( variables['XCODE'], '9' )
- script: |
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off
pip install --upgrade pip
brew update
brew outdated pyenv || brew upgrade pyenv
brew install pyenv-virtualenv
if which pyenv > /dev/null; then
eval "$(pyenv init -)"
fi
pyenv virtualenv conan
pyenv rehash
pyenv activate conan
pip install conan --upgrade
conan profile new default --detect
conan profile update settings.compiler.libcxx=$(CXX_STDLIB) default
conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
mkdir -p $(Build.SourcesDirectory)/cyclonedds/build
cd $(Build.SourcesDirectory)/cyclonedds/build
conan install -b missing -s arch=x86_64 -s build_type=$(BuildType) ..
mkdir -p $(Build.SourcesDirectory)/build
cd $(Build.SourcesDirectory)/build
conan install -b missing -s arch=x86_64 -s build_type=$(BuildType) ..
displayName: 'Install Build Dependencies'
- template: templates/build_and_test.yml
- job: MacOS_10_14
pool:
vmImage: 'macOS-10.14'
strategy:
matrix:
Xcode 11.0 Debug:
BuildType: Debug
USE_SANITIZER: address
GENERATOR: "Unix Makefiles"
CXX_STDLIB: libc++
Xcode 11.0 Release:
BuildType: Release
USE_SANITIZER: none
GENERATOR: "Unix Makefiles"
CXX_STDLIB: libc++
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
- script: |
git clone --branch $(CYCLONE_REF) $(CYCLONE_REPO)
git clone --branch $(IDLPP_REF) $(IDLPP_REPO)
displayName: 'Checkout repositories'
- bash: |
/bin/bash -c "sudo xcode-select -s /Applications/Xcode_11.app/Contents/Developer"
clang --version
displayName: 'Set Xcode11 as default'
failOnStderr: false
- script: |
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off
pip install --upgrade pip
brew update
brew outdated pyenv || brew upgrade pyenv
brew install pyenv-virtualenv
if which pyenv > /dev/null; then
eval "$(pyenv init -)"
fi
pyenv virtualenv conan
pyenv rehash
pyenv activate conan
pip install conan --upgrade
conan profile new default --detect
conan profile update settings.compiler.libcxx=$(CXX_STDLIB) default
conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
mkdir -p $(Build.SourcesDirectory)/cyclonedds/build
cd $(Build.SourcesDirectory)/cyclonedds/build
conan install -b missing -s arch=x86_64 -s build_type=$(BuildType) ..
mkdir -p $(Build.SourcesDirectory)/build
cd $(Build.SourcesDirectory)/build
conan install -b missing -s arch=x86_64 -s build_type=$(BuildType) ..
displayName: 'Install Build Dependencies'
- template: templates/build_and_test.yml