forked from ipa320/cob_people_perception
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (42 loc) · 1.75 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
sudo: required
dist: trusty
# Force travis to use its minimal image with default Python settings
language: generic
compiler:
- gcc
env:
global:
- CATKIN_WS=~/catkin_ws
- CATKIN_WS_SRC=${CATKIN_WS}/src
- CATKIN_WS_UNDERLAY=~/catkin_ws_underlay
- CATKIN_WS_UNDERLAY_SRC=${CATKIN_WS_UNDERLAY}/src
- CI_ROS_DISTRO="indigo"
- ROS_PARALLEL_JOBS=-j1
- DEFAULT_ROSINSTALL="https://raw.githubusercontent.com/ipa320/care-o-bot/${CI_ROS_DISTRO}_dev/.travis.rosinstall"
install:
- sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu trusty main" > /etc/apt/sources.list.d/ros-latest.list'
- wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
- sudo apt-get update -qq
- sudo apt-get install -qq -y python-rosdep python-wstool
- sudo apt-get install -qq -y ros-${CI_ROS_DISTRO}-ros #needed as long as https://github.com/ros-infrastructure/rosdep/issues/430 is not fixed
- sudo rosdep init
- rosdep update
- rosdep install -q --from-paths ./ -i -y --rosdistro $CI_ROS_DISTRO
script:
- set -e
- source /opt/ros/$CI_ROS_DISTRO/setup.bash
- mkdir -p $CATKIN_WS_UNDERLAY_SRC
- cd $CATKIN_WS_UNDERLAY
- if [ -f $TRAVIS_BUILD_DIR/.travis.rosinstall ]; then wstool init -j10 src $TRAVIS_BUILD_DIR/.travis.rosinstall; fi
- if [ ! -f $TRAVIS_BUILD_DIR/.travis.rosinstall ]; then wstool init -j10 src $DEFAULT_ROSINSTALL; fi
- rosdep install -q --from-paths src -i -y > /dev/null
- catkin_make -DCMAKE_BUILD_TYPE=Release install > /dev/null
- source $CATKIN_WS_UNDERLAY/install/setup.bash
- mkdir -p $CATKIN_WS_SRC
- ln -s $TRAVIS_BUILD_DIR $CATKIN_WS_SRC
- cd $CATKIN_WS_SRC
- catkin_init_workspace
- cd $CATKIN_WS
- catkin_make -DCMAKE_BUILD_TYPE=Release
- catkin_make run_tests
- catkin_test_results --verbose