forked from OpenDDS/OpenDDS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
119 lines (111 loc) · 3.96 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
dist: bionic
group: travis_latest
language: cpp
compiler:
- gcc
env:
matrix:
- COMPILER=g++ STATIC=1 XERCES3=1 NO_TESTS=1
- NO_INLINE=1 NO_BIT=1
- RELEASE_MODE=1 NO_TESTS=1
- SAFETY_PROFILE=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++-8
- openjdk-8-jdk-headless
env: COMPILER=g++-8 USE_JAVA=1 RELEASE_MODE=1 NO_TESTS=1
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libxerces-c-dev
- libwireshark-dev
- g++-10
env: COMPILER=g++-10 WIRESHARK=1 NO_TESTS=1
- os: osx
osx_image: xcode11.6
compiler: clang
env: COMPILER=clang++ NO_INLINE=1 NO_DEBUG=1 CONFIGURE_CXX11=1 NO_TESTS=1
addons:
apt:
packages:
- libxerces-c-dev
- libssl-dev
- g++-8
- cmake
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 [ "$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 [ "$RELEASE_MODE" == "1" ]; then CONFIG_OPTIONS+=" --no-debug --optimize"; fi
- if [ "$NO_DEBUG" == "1" ]; then CONFIG_OPTIONS+=" --no-debug"; 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"; MAKE_PREFIX="travis_wait 50"; 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+=" --std=c++11"; fi
- if [ "$CONFIGURE_CXX11" == "1" ]; then CONFIG_OPTIONS+=" --std=c++11"; fi
- if [ "$VERSIONED_NS" == 1 ]; then CONFIG_OPTIONS+=" --features=versioned_namespace=1"; fi
- if [ "$DDS_SECURITY" == 1 ]; then CONFIG_OPTIONS+=" --security"; fi
- if [ "$WIRESHARK" == 1 ]; then CONFIG_OPTIONS+=" --wireshark"; fi
- ./configure --mpcopts="-workers 4" --compiler=$COMPILER --tests $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:
- $MAKE_PREFIX make -s -j2
- FILES=$(git clean -nd -e ext); if [ "$FILES" != "" ]; then
echo ERROR These files should be gitignored;
echo $FILES;
exit 1;
fi
- if [ "$SAFETY_PROFILE" != "1" ]; then
$DDS_ROOT/tests/cmake_integration/run_ci_tests.pl ${STATIC:+--no-shared};
fi
- if [ "$NO_TESTS" == "1" ]; then
echo Building Messenger;
$ACE_ROOT/bin/mwc.pl -type gnuace tests/DCPS/Messenger;
make -C tests/DCPS/Messenger;
fi
- 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