-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (40 loc) · 1.62 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
# travis rules for kinect
# use Ubuntu Trusty 14.04, compatible with ROS Indigo - check https://docs.travis-ci.com/user/ci-environment/
sudo: required
dist: trusty
language: cpp
compiler:
- gcc
before_install:
# install ROS according to http://wiki.ros.org/indigo/Installation/Ubuntu
- export ROS_DISTRO=indigo
- sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu trusty main" > /etc/apt/sources.list.d/ros-latest.list'
- wget https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -O - | sudo apt-key add -
- sudo apt-get -qq update
- sudo apt-get install -y -qq ros-$ROS_DISTRO-ros-base python-catkin-pkg python-rosdep python-wstool
- source /opt/ros/$ROS_DISTRO/setup.bash
# fix a bug with catkin_pkg - cf. http://answers.ros.org/question/56873/problem-with-catkin_make/
- export PYTHONPATH="$PYTHONPATH:/usr/lib/python2.7/dist-packages"
# Prepare rosdep to install dependencies.
- sudo rosdep init
- rosdep update
before_script: # Use this to prepare your build for testing e.g. copy database configurations, environment variables, etc.
# Create catkin workspace
- export CI_SOURCE_PATH=$(pwd)
- mkdir -p ~/catkin_ws/src
- cd ~/catkin_ws/src
- catkin_init_workspace
- ln -s $CI_SOURCE_PATH . # Link the repo we are testing to the new workspace
# source dependencies: install using wstool.
- wstool init
- wstool merge $CI_SOURCE_PATH/dependencies.rosinstall
- wstool update
# package depdencies: install using rosdep.
- cd ~/catkin_ws
- rosdep install -y --from-paths src --ignore-src
script: # compile
- cd ~/catkin_ws
- catkin_make
# compile tests
- cd build
- make tests