Skip to content

Commit

Permalink
Merge pull request #73 from ipa-fmw/travis
Browse files Browse the repository at this point in the history
use script based travis config
  • Loading branch information
fmessmer committed Dec 1, 2015
2 parents be73062 + dd0e0f0 commit 4093f0a
Showing 1 changed file with 7 additions and 25 deletions.
32 changes: 7 additions & 25 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ dist: trusty
language: generic
compiler:
- gcc

env:
global:
- CATKIN_WS=~/catkin_ws
Expand All @@ -13,30 +14,11 @@ env:
- 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
- wget https://raw.githubusercontent.com/ipa320/care-o-bot/${CI_ROS_DISTRO}_dev/.travis.install.sh
- bash .travis.install.sh

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
- wget https://raw.githubusercontent.com/ipa320/care-o-bot/${CI_ROS_DISTRO}_dev/.travis.script.sh
- bash .travis.script.sh

0 comments on commit 4093f0a

Please sign in to comment.