-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
97 lines (86 loc) · 2.59 KB
/
.travis.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
sudo: false
language: cpp
git:
depth: 10
matrix:
include:
- os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
env: COMPILER=g++-4.8
- os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env: COMPILER=g++-7
- os: linux
compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0
packages:
- clang++-5.0
env: COMPILER=clang++-5.0
env:
global:
# MPC settings
- MPC_ROOT=$TRAVIS_BUILD_DIR/ext/MPC
# ACE/TAO settings
- ACE_ROOT=$TRAVIS_BUILD_DIR/ext/ACE_TAO/ACE
- TAO_ROOT=$TRAVIS_BUILD_DIR/ext/ACE_TAO/TAO
- LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ACE_ROOT/lib
# OpenDDS settings
- DDS_ROOT=$TRAVIS_BUILD_DIR/ext/OpenDDS
- LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$DDS_ROOT/lib
# LASAGNE settings
- DAF_ROOT=$TRAVIS_BUILD_DIR
- TAF_ROOT=$DAF_ROOT/TAF
- LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$DAF_ROOT/lib
before_install:
- mkdir ext
- cd ext
- git clone -b Latest_ACETAO_Micro --depth 1 git://github.com/DOCGroup/MPC.git
- git clone -b Latest_Micro --depth 1 git://github.com/DOCGroup/ACE_TAO.git
- git clone -b latest-release --depth 1 git://github.com/objectcomputing/OpenDDS.git
- cd ..
branches:
only:
- develop
- master
- release*
install:
before_script:
# Print out the compiler version (useful to track)
- $COMPILER --version
# Copy additional build files into the correct locations
- cp bin/build/ace/config.h $ACE_ROOT/ace/config.h
- cp bin/build/ace/default.features $ACE_ROOT/bin/MakeProjectCreator/config/default.features
# Platform macros to use depend on the OS and compiler combination
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
echo "OSX detected";
cp -f bin/build/ace/platform_macros.GNU.osxTarget $ACE_ROOT/include/makeinclude/platform_macros.GNU;
fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
if [ "$CXX" == "g++" ]; then
echo "Linux and g++ detected";
cp -f bin/build/ace/platform_macros.GNU.ci $ACE_ROOT/include/makeinclude/platform_macros.GNU;
else
echo "Linux and clang detected";
cp -f bin/build/ace/platform_macros.GNU.clangTarget $ACE_ROOT/include/makeinclude/platform_macros.GNU;
fi
fi
script:
- cd $TAF_ROOT
- perl $ACE_ROOT/bin/mwc.pl -type gnuace -workers 2 TAF_CI.mwc
- make CXX=$COMPILER --jobs 6 --quiet