-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
124 lines (103 loc) · 2.83 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
language: cpp
dist: bionic
os: linux
compiler:
- gcc
- clang
env:
global:
- CACHE_DIR=~/cached-deps
jobs:
- YARP_CHECKOUT=yarp-3.3
- YARP_CHECKOUT=yarp-3.2
jobs:
include:
- if: type = cron
compiler: gcc
env: ROBOTOLOGY_CHECKOUT=master
- if: type = cron
compiler: clang
env: ROBOTOLOGY_CHECKOUT=master
cache:
directories: $CACHE_DIR
addons:
apt:
packages:
- libopencv-dev
- libpcl-dev
- libproj-dev # needed by libpcl-dev on Xenial (known bug)
# ECF
- libboost-dev
- libtool
- dh-autoreconf
# YARP and KDL
- libeigen3-dev
# OpenRAVE
- libboost-filesystem-dev
- libboost-system-dev
- libboost-python-dev
- libboost-thread-dev
- libboost-iostreams-dev
- libqt4-dev
- qt4-dev-tools
- libxml2-dev
- libode-dev
- libsoqt4-dev
- libcoin80-dev
# Aquila
- libsfml-dev
# unit testing
- libgtest-dev
# code coverage
- lcov
before_install:
#-- Code coverage
- if [ "$CXX" = "g++" ]; then gem install coveralls-lcov; fi
install:
#-- Install ECF
- source "$TRAVIS_BUILD_DIR/scripts/travis/cache-ecf.sh"
#-- Install YARP
- >
source "$TRAVIS_BUILD_DIR/scripts/travis/git-cache-dependency.sh"
--package-name YARP
--repo-url https://github.com/robotology/yarp
--repo-checkout "${ROBOTOLOGY_CHECKOUT:-$YARP_CHECKOUT}"
--additional-cmake-options "-DSKIP_ACE:BOOL=ON"
--prepend-to-linker-path lib
--additional-export-paths "YARP_DATA_DIRS;share/yarp"
#-- Install OpenRAVE
- >
source "$TRAVIS_BUILD_DIR/scripts/travis/git-cache-dependency.sh"
--package-name OpenRAVE
--repo-url https://github.com/rdiankov/openrave
--repo-checkout master
--additional-cmake-options "-DOPT_VIDEORECORDING:BOOL=OFF -DOPT_IKFAST_FLOAT32:BOOL=OFF"
--prepend-to-linker-path lib
--cmake-env 'CFLAGS="-w" CXXFLAGS="-w"'
#-- Install KDL
- >
source "$TRAVIS_BUILD_DIR/scripts/travis/git-cache-dependency.sh"
--package-name KDL
--repo-url https://github.com/orocos/orocos_kinematics_dynamics
--repo-checkout master
--cmake-home-dir orocos_kdl
--prepend-to-linker-path lib
#-- Install Aquila
- >
source "$TRAVIS_BUILD_DIR/scripts/travis/git-cache-dependency.sh"
--package-name Aquila
--repo-url https://github.com/zsiciarz/aquila
--repo-checkout master
--prepend-to-linker-path lib
--additional-export-paths AQUILA_DIR
before_script:
- mkdir -p "$TRAVIS_BUILD_DIR/build" && cd "$_"
- cmake .. -DCMAKE_INSTALL_PREFIX="$PWD/install" -DENABLE_coverage:BOOL=ON
- make install
- export LD_LIBRARY_PATH=$PWD/install/lib:$LD_LIBRARY_PATH
script:
- echo "No unit tests available"
after_success:
#-- Code coverage
- if [ "$CXX" = "g++" ]; then source "$TRAVIS_BUILD_DIR/scripts/travis/coverage.sh"; fi
- make uninstall