-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (51 loc) · 2 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
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
matrix:
- CI_ROS_DISTRO="indigo"
- CI_ROS_DISTRO="jade"
- CI_ROS_DISTRO="indigo" CREATE_PKG_ARGS="-c AwesomeController"
matrix:
allow_failures:
- env: CI_ROS_DISTRO="jade"
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-catkin-tools python-gtk2
- sudo apt-get install -qq -y ros-$CI_ROS_DISTRO-catkin ros-$CI_ROS_DISTRO-ros
- sudo rosdep init
- rosdep update
- source /opt/ros/$CI_ROS_DISTRO/setup.bash
- mkdir -p $CATKIN_WS_SRC
- ln -s $TRAVIS_BUILD_DIR $CATKIN_WS_SRC
- cd $CATKIN_WS
- catkin init
- cd $CATKIN_WS_SRC
- git clone --recursive https://github.com/kuka-isir/rtt_lwr
- git clone https://github.com/kuka-isir/rtt_ros_kdl_tools
- wget https://raw.githubusercontent.com/IDSCETHZurich/re_trajectory-generator/master/kuka_IK/include/friComm.h
- mv friComm.h $CATKIN_WS_SRC/rtt_lwr/lwr_hardware/kuka_lwr_fri/include/kuka_lwr_fri/friComm.h
- rosdep install -r --from-paths $CATKIN_WS_SRC/ --rosdistro $ROS_DISTRO -y
- sudo apt-get install -qq -y ros-$CI_ROS_DISTRO-gazebo7-*
script:
# Enable install space
#- catkin config --install
# Build [and Install] packages
- catkin build --limit-status-rate 0.1 --no-notify -j2 -DCATKIN_ENABLE_TESTING=OFF -DCMAKE_BUILD_TYPE=Debug
# Build tests
#- catkin build --limit-status-rate 0.1 --no-notify --make-args tests
# Run tests
#- catkin run_tests
- source $CATKIN_WS/devel/setup.bash
- cd $CATKIN_WS_SRC
- lwr_create_pkg test_controller $CREATE_PKG_ARGS
- cd $CATKIN_WS
- catkin build --limit-status-rate 0.1 --no-notify -j2 -DCATKIN_ENABLE_TESTING=OFF -DCMAKE_BUILD_TYPE=Debug