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 13
/
.travis.yml
57 lines (52 loc) · 1.92 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
sudo: required
dist: trusty
osx_image: xcode7.3
language: cpp
cache: ccache
# set the CMAKE_PREFIX_PATH enviroment variable to get software installed by the superbuild
matrix:
include:
- os: linux
compiler: clang
env: TRAVIS_CMAKE_GENERATOR="Unix Makefiles", TRAVIS_BUILD_TYPE="Debug"
- os: linux
compiler: clang
env: TRAVIS_CMAKE_GENERATOR="Unix Makefiles", TRAVIS_BUILD_TYPE="Release"
- os: linux
compiler: gcc
env: TRAVIS_CMAKE_GENERATOR="Unix Makefiles", TRAVIS_BUILD_TYPE="Debug"
- os: linux
compiler: gcc
env: TRAVIS_CMAKE_GENERATOR="Unix Makefiles", TRAVIS_BUILD_TYPE="Release"
- os: osx
compiler: gcc
env: TRAVIS_CMAKE_GENERATOR="Unix Makefiles", TRAVIS_BUILD_TYPE="Debug"
- os: osx
compiler: clang
env: TRAVIS_CMAKE_GENERATOR="Xcode", TRAVIS_BUILD_TYPE="Release"
before_script:
- cd ..
# use superbuild for getting codyco-modules dependencies
- git clone https://github.com/robotology/codyco-superbuild
- cd codyco-superbuild
- pwd
# install dependencies using the codyco-superbuild script
- chmod +x ./.ci/travis-deps.sh
- sh .ci/travis-deps.sh
- mkdir build
- cd build
- export CMAKE_PREFIX_PATH=`pwd`/install
# using the YCM_EP_MAINTAINER_MODE variable to enable the subproject-dependees target
- cmake -G"${TRAVIS_CMAKE_GENERATOR}" -DCODYCO_TRAVIS_CI:BOOL=ON -DCODYCO_USES_KDL:BOOL=ON -DCMAKE_BUILD_TYPE=${TRAVIS_BUILD_TYPE} -DYCM_EP_MAINTAINER_MODE:BOOL=ON -DNON_INTERACTIVE_BUILD:BOOL=TRUE ..
- cmake --build . --config ${TRAVIS_BUILD_TYPE} --target codyco-modules-dependees
- cd ../..
# go back to codyco-modules
- cd codyco-modules
script:
- mkdir build
- cd build
- cmake -G"${TRAVIS_CMAKE_GENERATOR}" -DCODYCO_TRAVIS_CI:BOOL=ON -DCMAKE_BUILD_TYPE=${TRAVIS_BUILD_TYPE} -DNON_INTERACTIVE_BUILD:BOOL=TRUE ..
- cmake --build . --config ${TRAVIS_BUILD_TYPE}
notifications:
email: