forked from DOCGroup/XSC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
57 lines (55 loc) · 2.23 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
variables:
XSC_ROOT: $(Build.SourcesDirectory)
DOC_ROOT: $(Build.SourcesDirectory)/ACE_TAO
ACE_ROOT: $(DOC_ROOT)/ACE
MPC_ROOT: $(ACE_ROOT)/MPC
TAO_ROOT: $(DOC_ROOT)/TAO
system.prefergit: true
resources:
- repo: self
fetchDepth: 1
jobs:
- job: Linux
timeoutInMinutes: 30
pool:
vmImage: ubuntu-16.04
strategy:
matrix:
GCC4:
CC: gcc
CXX: g++
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 add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get --yes update
sudo apt-get --yes install libxerces-c-dev libssl-dev libboost-all-dev $(PackageDeps)
displayName: install system package dependencies ($(PackageDeps))
- powershell: git clone --depth 1 git://github.com/DOCGroup/ACE_TAO.git $(DOC_ROOT)
displayName: git clone ACE_TAO
- powershell: git clone --depth 1 git://github.com/DOCGroup/MPC.git $(MPC_ROOT)
displayName: git clone MPC
- 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
'boost=1' >> $(ACE_ROOT)/bin/MakeProjectCreator/config/default.features
'xsc=1' >> $(ACE_ROOT)/bin/MakeProjectCreator/config/default.features
displayName: Create default.features file
- powershell: |
'xerces3=1' > $(ACE_ROOT)/include/makeinclude/platform_macros.GNU
'ssl=1' >> $(ACE_ROOT)/include/makeinclude/platform_macros.GNU
'c++11=1' >> $(ACE_ROOT)/include/makeinclude/platform_macros.GNU
'boost=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 XSC.mwc -workers 4
displayName: Run mwc.pl on XSC.mwc
- bash: make -j 6
displayName: Build project