Skip to content

Commit

Permalink
Kinetic: use ROS-I CI configuration (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-oquin committed Jan 30, 2018
1 parent f2665b6 commit 86688ba
Showing 1 changed file with 5 additions and 24 deletions.
29 changes: 5 additions & 24 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,15 @@
# Fix recent Travis update by rolling back to previous configuration
group: deprecated-2017Q3
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
- UPSTREAM_WORKSPACE=file
matrix:
- CI_ROS_DISTRO="indigo"
- ROS_DISTRO="kinetic" ROS_REPOSITORY_PATH=http://packages.ros.org/ros/ubuntu
- ROS_DISTRO="indigo" ROS_REPOSITORY_PATH=http://packages.ros.org/ros/ubuntu
install:
- sudo sh -c 'echo "deb http://packages.ros.org/ros-shadow-fixed/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
- sudo rosdep init
- rosdep update
# Use rosdep to install all dependencies (including ROS itself)
- rosdep install --from-paths ./ -i -y --rosdistro $CI_ROS_DISTRO
- git clone https://github.com/ros-industrial/industrial_ci.git .ci_config
script:
- source /opt/ros/$CI_ROS_DISTRO/setup.bash
- mkdir -p $CATKIN_WS_SRC
- ln -s $TRAVIS_BUILD_DIR $CATKIN_WS_SRC
- cd $CATKIN_WS
# Build [and Install] packages, build tests, and run tests
- catkin_make_isolated --install --cmake-args -DCMAKE_BUILD_TYPE=Release &&
catkin_make_isolated --install --cmake-args -DCMAKE_BUILD_TYPE=Release --catkin-make-args tests &&
catkin_make_isolated --install --cmake-args -DCMAKE_BUILD_TYPE=Release --catkin-make-args run_tests
# Check results
- catkin_test_results ./build_isolated
- source .ci_config/travis.sh

0 comments on commit 86688ba

Please sign in to comment.