blob: 2c780e267b49cd70ff65928362159b6a721ade8c (
plain)
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
|
variables:
DOC_ROOT: $(Build.SourcesDirectory)/ACE_TAO
ACE_ROOT: $(DOC_ROOT)/ACE
MPC_ROOT: $(Build.SourcesDirectory)
TAO_ROOT: $(DOC_ROOT)/TAO
CIAO_ROOT: $(DOC_ROOT)/CIAO
DAnCE_ROOT: $(Build.SourcesDirectory)/DAnCE
DDS_ROOT: $(Build.SourcesDirectory)/DDS
system.prefergit: true
schedules:
- cron: "0 7 * * SUN"
displayName: Weekly Sunday
branches:
include:
- master
always: true
resources:
- repo: self
fetchDepth: 1
jobs:
- job: VisualStudio2019
timeoutInMinutes: 90
pool:
vmImage: windows-2019
strategy:
matrix:
Debug64:
BuildPlatform: x64
BuildConfiguration: Debug
vcpkgarch: x64-windows
vcpkglibdir: debug\lib
vcpkgpackages: openssl xerces-c
Debug32:
BuildPlatform: Win32
BuildConfiguration: Debug
vcpkgarch: x86-windows
vcpkglibdir: debug\lib
vcpkgpackages: openssl xerces-c
variables:
VCPKG_ROOT: $(Build.SourcesDirectory)\vcpkg
XERCESC_INCDIR: $(VCPKG_ROOT)\installed\$(vcpkgarch)\include
XERCESC_LIBDIR: $(VCPKG_ROOT)\installed\$(vcpkgarch)\$(vcpkglibdir)
SSL_INCDIR: $(VCPKG_ROOT)\installed\$(vcpkgarch)\include
SSL_LIBDIR: $(VCPKG_ROOT)\installed\$(vcpkgarch)\$(vcpkglibdir)
steps:
- powershell: |
git clone -q --depth 1 git://github.com/Microsoft/vcpkg.git $(VCPKG_ROOT)
$(VCPKG_ROOT)\bootstrap-vcpkg.bat
$(VCPKG_ROOT)\vcpkg install --recurse --triplet $(vcpkgarch) $(vcpkgpackages)
displayName: Install additional packages using vcpkg
- powershell: |
git clone -q --depth 1 git://github.com/DOCGroup/ACE_TAO.git $(Build.SourcesDirectory)/ACE_TAO
git clone -q --depth 1 git://github.com/DOCGroup/DAnCE.git $(DAnCE_ROOT)
git clone -q --depth 1 git://github.com/DOCGroup/CIAO.git $(CIAO_ROOT)
displayName: git clone dependent repositories
- powershell: |
'#include "ace/config-win32.h"' > $(ACE_ROOT)\ace\config.h
displayName: Create config.h file
- powershell: |
echo "xerces3=1" | out-file -encoding ASCII $(ACE_ROOT)\bin\MakeProjectCreator\config\default.features
echo "ssl=1" | out-file -append -encoding ASCII $(ACE_ROOT)\bin\MakeProjectCreator\config\default.features
echo "openssl11=1" | out-file -append -encoding ASCII $(ACE_ROOT)\bin\MakeProjectCreator\config\default.features
displayName: Create default.features file
- powershell: perl $(ACE_ROOT)/bin/mwc.pl -type vs2019 $(CIAO_ROOT)/CIAO_TAO_DAnCE.mwc -workers 4
displayName: Run script mwc.pl on $(CIAO_ROOT)/CIAO_TAO_DAnCE.mwc
- task: VSBuild@1
displayName: Build solution $(CIAO_ROOT)/CIAO_TAO_DAnCE.sln
inputs:
solution: $(CIAO_ROOT)/CIAO_TAO_DAnCE.sln
platform: $(BuildPlatform)
configuration: $(BuildConfiguration)
maximumCpuCount: true
- job: VisualStudio2017
timeoutInMinutes: 90
pool:
vmImage: vs2017-win2016
strategy:
matrix:
Release64:
BuildPlatform: x64
BuildConfiguration: Release
vcpkgarch: x64-windows
vcpkglibdir: lib
vcpkgpackages: openssl xerces-c
variables:
VCPKG_ROOT: $(Build.SourcesDirectory)\vcpkg
XERCESC_INCDIR: $(VCPKG_ROOT)\installed\$(vcpkgarch)\include
XERCESC_LIBDIR: $(VCPKG_ROOT)\installed\$(vcpkgarch)\$(vcpkglibdir)
SSL_INCDIR: $(VCPKG_ROOT)\installed\$(vcpkgarch)\include
SSL_LIBDIR: $(VCPKG_ROOT)\installed\$(vcpkgarch)\$(vcpkglibdir)
steps:
- powershell: |
git clone -q --depth 1 git://github.com/Microsoft/vcpkg.git $(VCPKG_ROOT)
$(VCPKG_ROOT)\bootstrap-vcpkg.bat
$(VCPKG_ROOT)\vcpkg install --recurse --triplet $(vcpkgarch) $(vcpkgpackages)
displayName: Install additional packages using vcpkg
- powershell: |
git clone -q --depth 1 git://github.com/DOCGroup/ACE_TAO.git $(Build.SourcesDirectory)/ACE_TAO
git clone -q --depth 1 git://github.com/DOCGroup/DAnCE.git $(DAnCE_ROOT)
git clone -q --depth 1 git://github.com/DOCGroup/CIAO.git $(CIAO_ROOT)
displayName: git clone dependent repositories
- powershell: |
'#include "ace/config-win32.h"' > $(ACE_ROOT)\ace\config.h
displayName: Create config.h file
- powershell: |
echo "xerces3=1" | out-file -encoding ASCII $(ACE_ROOT)\bin\MakeProjectCreator\config\default.features
echo "ssl=1" | out-file -append -encoding ASCII $(ACE_ROOT)\bin\MakeProjectCreator\config\default.features
echo "openssl11=1" | out-file -append -encoding ASCII $(ACE_ROOT)\bin\MakeProjectCreator\config\default.features
displayName: Create default.features file
- powershell: perl $(ACE_ROOT)/bin/mwc.pl -type vs2017 $(CIAO_ROOT)/CIAO_TAO_DAnCE.mwc -workers 4
displayName: Run script mwc.pl on $(CIAO_ROOT)/CIAO_TAO_DAnCE.mwc
- task: VSBuild@1
displayName: Build solution $(CIAO_ROOT)/CIAO_TAO_DAnCE.sln
inputs:
solution: $(CIAO_ROOT)/CIAO_TAO_DAnCE.sln
platform: $(BuildPlatform)
configuration: $(BuildConfiguration)
maximumCpuCount: true
- job: Linux
pool:
vmImage: ubuntu-latest
strategy:
matrix:
GCC9:
CC: gcc-9
CXX: g++-9
PackageDeps: g++-9
platform_file: include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
steps:
- script: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
sudo apt-add-repository "deb http://apt.llvm.org/$(lsb_release -cs)/ $(Repo) main"
displayName: Add repository ($(Repo))
condition: and(succeeded(), ne(variables['Repo'], ''))
- script: |
sudo apt-get --yes update
sudo apt-get --yes install libxerces-c-dev libssl-dev $(PackageDeps)
displayName: install system package dependencies ($(PackageDeps))
- powershell: |
git clone -q --depth 1 git://github.com/DOCGroup/ACE_TAO.git $(Build.SourcesDirectory)/ACE_TAO
git clone -q --depth 1 git://github.com/DOCGroup/DAnCE.git $(DAnCE_ROOT)
git clone -q --depth 1 git://github.com/DOCGroup/CIAO.git $(CIAO_ROOT)
git clone -q --depth 1 git://github.com/objectcomputing/OpenDDS $(DDS_ROOT)
- powershell: |
'#include "ace/config-linux.h"' > $(ACE_ROOT)/ace/config.h
displayName: Create config.h file
- powershell: |
'xerces3=1' > $(ACE_ROOT)/bin/MakeProjectCreator/config/default.features
'dds4ccm_opendds=1' >> $(ACE_ROOT)/bin/MakeProjectCreator/config/default.features
'dds_suppress_anys=0' >> $(ACE_ROOT)/bin/MakeProjectCreator/config/default.features
'ssl=1' >> $(ACE_ROOT)/bin/MakeProjectCreator/config/default.features
displayName: Create default.features file
- powershell: |
'c++11=1' > $(ACE_ROOT)/include/makeinclude/platform_macros.GNU
'xerces3=1' >> $(ACE_ROOT)/include/makeinclude/platform_macros.GNU
'ssl=1' >> $(ACE_ROOT)/include/makeinclude/platform_macros.GNU
'dds4ccm_opendds=1' >> $(ACE_ROOT)/include/makeinclude/platform_macros.GNU
"$(platform_file)" >> $(ACE_ROOT)/include/makeinclude/platform_macros.GNU
displayName: Create platform_macros file
- powershell: perl $(ACE_ROOT)/bin/mwc.pl -type gnuace $(CIAO_ROOT)/CIAO_TAO_DAnCE_OpenDDS.mwc -workers 4
displayName: Run mwc.pl on $(CIAO_ROOT)/CIAO_TAO_DAnCE_OpenDDS.mwc
- bash: make -j 6 -C $(CIAO_ROOT)
displayName: Build project
- job: MacOSX
pool:
vmImage: macOS-latest
steps:
- powershell: |
git clone -q --depth 1 git://github.com/DOCGroup/ACE_TAO.git $(Build.SourcesDirectory)/ACE_TAO
git clone -q --depth 1 git://github.com/DOCGroup/CIAO.git $(CIAO_ROOT)
git clone -q --depth 1 git://github.com/DOCGroup/DAnCE.git $(DAnCE_ROOT)
- powershell: |
'#include "ace/config-macosx.h"' > $(ACE_ROOT)/ace/config.h
displayName: Create config.h file
- powershell: |
'include $(ACE_ROOT)/include/makeinclude/platform_macosx.GNU' > $(ACE_ROOT)/include/makeinclude/platform_macros.GNU;
displayName: Create platform_macros file
- powershell: perl $(ACE_ROOT)/bin/mwc.pl -type gnuace $(CIAO_ROOT)/CIAO_TAO_DAnCE.mwc -workers 4
displayName: Run mwc.pl on $(CIAO_ROOT)/CIAO_TAO_DAnCE.mwc
- bash: make -j 6 -C $(CIAO_ROOT)
displayName: Build project
|