-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
30 lines (30 loc) · 1.27 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
sudo: required
dist: trusty
cache:
- apt
language: generic
env:
global:
- CATKIN_WS=~/catkin_ws
- CATKIN_WS_SRC=${CATKIN_WS}/src
- CI_ROS_DISTRO="indigo"
before_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 ros-indigo-ros-base python-catkin-tools ros-indigo-std-msgs ros-indigo-roslint freeglut3-dev libgtk2.0-dev ros-indigo-roscpp ros-indigo-hardware-interface ros-indigo-controller-interface ros-indigo-joint-limits-interface
- git clone https://github.com/openhumanoids/valkyrie-lcm-distro.git ~/valkyrie-lcm-distro && cd ~/valkyrie-lcm-distro
- make BUILD_PREFIX=`pwd`/build
- export VALKYRIE_LCM_DISTRO_PATH=`pwd`
install:
- mkdir -p $CATKIN_WS_SRC
- ln -s $TRAVIS_BUILD_DIR $CATKIN_WS_SRC
- git clone https://github.com/openhumanoids/pods.git $CATKIN_WS_SRC/pods
script:
- source /opt/ros/$CI_ROS_DISTRO/setup.bash
- source $VALKYRIE_LCM_DISTRO_PATH/setup_path.sh
- echo $DISTRO_BASE
- cd $CATKIN_WS
- catkin config --init --mkdirs --no-install --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_FLAGS=-std=c++11
- catkin config --extend /opt/ros/$CI_ROS_DISTRO
- catkin build -s -j4