Skip to content

Commit

Permalink
update travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
ipa-fmw committed Nov 24, 2015
1 parent 2b3de80 commit ccb7f79
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 15 deletions.
8 changes: 8 additions & 0 deletions .travis.rosinstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- git:
uri: 'https://github.com/ipa320/cob_common.git'
local-name: cob_common
version: indigo_dev
- git:
uri: 'https://github.com/ipa320/cob_extern.git'
local-name: cob_extern
version: indigo_dev
34 changes: 19 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,34 @@ 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"
# matrix:
# - CI_ROS_DISTRO="indigo"
# - CI_ROS_DISTRO="jade"
- 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-catkin-tools
- 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
# Use rosdep to install all dependencies (including ROS itself)
- rosdep install --from-paths ./ -i -y --rosdistro $CI_ROS_DISTRO
- 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 init
# Enable install space
#- catkin config --install
# Build [and Install] packages
- catkin build --limit-status-rate 0.1 --no-notify -DCMAKE_BUILD_TYPE=Release
# Build tests
- catkin build --limit-status-rate 0.1 --no-notify --make-args tests
# Run tests
#- catkin run_tests
- catkin_make -DCMAKE_BUILD_TYPE=Release
- catkin_make run_tests -j1
- catkin_test_results --verbose

0 comments on commit ccb7f79

Please sign in to comment.