This repository has been archived by the owner on Apr 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
.travis.yml
53 lines (44 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
sudo: required
dist: trusty
osx_image: xcode7.3
language: cpp
cache:
ccache: true
directories:
- /usr/local/Cellar
matrix:
include:
- os: linux
compiler: clang
env: TRAVIS_CMAKE_GENERATOR="Unix Makefiles", TRAVIS_BUILD_TYPE="Debug", CODYCO_BUILD_OCRA_MODULES=OFF, USES_KDL=ON
- os: linux
compiler: clang
env: TRAVIS_CMAKE_GENERATOR="Unix Makefiles", TRAVIS_BUILD_TYPE="Release", CODYCO_BUILD_OCRA_MODULES=OFF, USES_KDL=OFF
- os: linux
compiler: gcc
env: TRAVIS_CMAKE_GENERATOR="Unix Makefiles", TRAVIS_BUILD_TYPE="Debug", CODYCO_BUILD_OCRA_MODULES=OFF, USES_KDL=OFF
- os: linux
compiler: gcc
env: TRAVIS_CMAKE_GENERATOR="Unix Makefiles", TRAVIS_BUILD_TYPE="Release", CODYCO_BUILD_OCRA_MODULES=OFF, USES_KDL=ON
before_script:
# Update homebrew on osx
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi
# Install ccache on osx
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install ccache; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then export PATH="/usr/local/opt/ccache/libexec:$PATH"; fi
# Use ccache also for clang and clang++ on linux
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then if [ "$CC" == "clang" ]; then sudo ln -s ../../bin/ccache /usr/lib/ccache/clang; fi; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then if [ "$CC" == "clang" ]; then export CFLAGS="-Qunused-arguments"; fi; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then if [ "$CXX" == "clang++" ]; then sudo ln -s ../../bin/ccache /usr/lib/ccache/clang++; fi; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then if [ "$CXX" == "clang++" ]; then export CXXFLAGS="-Qunused-arguments"; fi; fi
# Install deps
- sh .ci/travis-deps.sh
script:
- cmake --version
- mkdir build
- cd build
- cmake -G"${TRAVIS_CMAKE_GENERATOR}" -DCODYCO_USES_KDL=${USES_KDL} -DCODYCO_BUILD_OCRA_MODULES:BOOL=${CODYCO_BUILD_OCRA_MODULES} -DCODYCO_TRAVIS_CI:BOOL=ON -DCMAKE_BUILD_TYPE=${TRAVIS_BUILD_TYPE} -DNON_INTERACTIVE_BUILD:BOOL=TRUE ..
- sh ../.ci/travis-build.sh
notifications:
email: