-
Notifications
You must be signed in to change notification settings - Fork 28
/
.travis.yml
81 lines (71 loc) · 2.02 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
language: generic
cache: ccache
addons:
apt:
packages:
- build-essential
- git
- cmake
- libboost-all-dev
- libxml-xpath-perl
- libboost-all-dev
- omniorb
- omniidl
- omniorb-nameserver
- libomniorb4-dev
- pkg-config
- clang-3.8
env:
global:
- BOOST_TEST_LOG_LEVEL=message
- CFLAGS="-Wall -Wextra -Wno-unused-parameter"
matrix:
include:
- os: linux
dist: xenial
env: COMPILER=gcc CXXFLAGS="-std=gnu++03 -Wall -Wextra -Wno-unused-parameter"
- os: linux
dist: xenial
env: COMPILER=gcc CXXFLAGS="-std=c++11 -Wall -Wextra -Wno-unused-parameter"
- os: linux
dist: xenial
env: COMPILER=clang-3.8 CXXFLAGS="-std=c++11 -Wall -Wextra -Wno-unused-parameter"
- os: linux
dist: xenial
env: COMPILER=clang CXXFLAGS="-std=c++11 -Wall -Wextra -Wno-unused-parameter"
- os: osx
osx_image: xcode10.1
branches:
only:
- master
- /^toolchain-[\d\.]+[\d]$/
before_install:
# Set C/C++ compiler
- |
if [[ "${COMPILER}" != "" ]]; then
export CC=${COMPILER}
if [[ "${COMPILER}" == "gcc"* ]]; then
export CXX=${COMPILER/gcc/g++}
elif [[ "${COMPILER}" == "clang"* ]]; then
export CXX=${COMPILER/clang/clang++}
fi
${CC} --version
${CXX} --version
fi
# Install HomeBrew dependencies (macOS only)
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update
brew reinstall boost cmake ccache gnu-getopt readline omniorb
# gnu-getopt is keg-only and newer HomeBrew versions refuse to link it.
#brew link --force gnu-getopt
export PATH="/usr/local/opt/gnu-getopt/bin:$PATH"
# readline is keg-only and newer HomeBrew versions refuse to link it.
#brew link --force readline
export CMAKE_PREFIX_PATH="/usr/local/opt/readline"
export PATH="/use/local/opt/ccache/libexec:$PATH"
fi
script:
# Build and install the Orocos Toolchain
- ./configure --enable-corba --omniorb
- make -j2 install