forked from OpenDDS/OpenDDS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
137 lines (129 loc) · 4.15 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
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
sudo: false
language: cpp
compiler:
- gcc
env:
matrix:
- FUZZ=1 STATIC=1 XERCES3=1 NO_TESTS=1
- NO_INLINE=1 NO_BIT=1
- NO_INLINE=1 VERSIONED_NS=1 DDS_SECURITY=1
- NO_DEBUG=1 NO_TESTS=1
- SAFETY_PROFILE=1
- NO_INLINE=1 USES_WCHAR=1
- NO_INLINE=1 NO_MULTITOPIC=1 XERCES3=1
global:
- ACE_ROOT=$TRAVIS_BUILD_DIR/ACE_TAO/ACE
- TAO_ROOT=$TRAVIS_BUILD_DIR/ACE_TAO/TAO
- DDS_ROOT=$TRAVIS_BUILD_DIR
- MPC_ROOT=$TRAVIS_BUILD_DIR/ext/MPC
- LD_LIBRARY_PATH=$ACE_ROOT/lib:$DDS_ROOT/lib:$LD_LIBRARY_PATH
- COMPILER=g++-8
matrix:
include:
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libxerces-c-dev
- g++-6
- openjdk-7-jdk
env: COMPILER=g++-6 USE_JAVA=1 NO_DEBUG=1 NO_TESTS=1
- compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0
packages:
- libxerces-c-dev
- clang++-5.0
env: COMPILER=clang++-5.0 NO_INLINE=1
- compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-6.0
packages:
- libxerces-c-dev
- clang++-6.0
env: COMPILER=clang++-6.0 NO_INLINE=1
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libxerces-c-dev
- g++-6
env: COMPILER=g++-6 NO_INLINE=1
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libxerces-c-dev
- g++-7
env: COMPILER=g++-7 NO_INLINE=1
- os: osx
osx_image: xcode9.1
compiler: clang
env: COMPILER=clang++ NO_INLINE=1
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libxerces-c-dev
- libssl-dev
- g++-8
before_install:
- mkdir ext
- cd ext && git clone --depth 1 git://github.com/DOCGroup/MPC.git
- cd .. && git clone --depth 1 git://github.com/DOCGroup/ACE_TAO.git
branches:
only:
- master
before_script:
- export
- if [ "$FUZZ" == "1" ]; then
rm -rf tools/modeling/plugins tools/IntermediateTypeLang/cpp/rapidjson tests/googletest;
perl $DDS_ROOT/tools/scripts/dds_fuzz.pl;
fi
- if [ "$NO_INLINE" == "1" ]; then CONFIG_OPTIONS+=" --no-inline"; fi
- if [ "$NO_BIT" == "1" ]; then CONFIG_OPTIONS+=" --no-built-in-topics"; fi
- if [ "$STATIC" == "1" ]; then CONFIG_OPTIONS+=" --static"; fi
- if [ "$NO_DEBUG" == "1" ]; then CONFIG_OPTIONS+=" --no-debug --optimize"; fi
- if [ "$SAFETY_PROFILE" == "1" ]; then CONFIG_OPTIONS+=" --safety-profile"; fi
- if [ "$NO_MULTITOPIC" == "1" ]; then CONFIG_OPTIONS+=" --no-multi-topic"; fi
- if [ "$USE_JAVA" == "1" ]; then CONFIG_OPTIONS+=" --java"; fi
- if [ "$NO_TESTS" == "1" ]; then CONFIG_OPTIONS+=" --no-tests"; fi
- if [ "$USES_WCHAR" == "1" ]; then CONFIG_OPTIONS+=" --features=uses_wchar=1"; fi
- if [ "$XERCES3" == "1" ]; then CONFIG_OPTIONS+=" --xerces3"; fi
- if [ "$CXX" == "g++" ]; then CONFIG_OPTIONS+=" --macros=c++11=1"; fi
- if [ "$VERSIONED_NS" == 1 ]; then CONFIG_OPTIONS+=" --features=versioned_namespace=1"; fi
- if [ "$DDS_SECURITY" == 1 ]; then CONFIG_OPTIONS+=" --security"; fi
- ./configure --mpcopts="-workers 2" --compiler=$COMPILER $CONFIG_OPTIONS
- tools/scripts/show_build_config.pl
- if [ "$SAFETY_PROFILE" == "1" ]; then
export LD_LIBRARY_PATH+=:$TRAVIS_BUILD_DIR/build/target/ACE_TAO/ACE/lib:$TRAVIS_BUILD_DIR/build/target/lib;
fi
script:
- travis_wait 45 make -s -j 6
- if [ "$SAFETY_PROFILE" == "1" ]; then
cd build/target/tests/DCPS/Messenger && ./run_test.pl rtps_disc;
cd $DDS_ROOT/build/target/tests/FACE/Messenger;
./run_test.pl;
./run_test.pl callback;
./run_test.pl static;
./run_test.pl static callback;
elif [ "$USE_JAVA" == "1" ]; then
cd java/tests/messenger;
./run_test.pl tcp;
./run_test.pl rtps;
else
cd tests/DCPS/Messenger && ./run_test.pl all;
fi