From 22445f62b63162d0245552b83ca8eac163cdd257 Mon Sep 17 00:00:00 2001 From: Kei Okada Date: Tue, 6 Aug 2019 15:29:36 +0000 Subject: [PATCH] setup EoL repository --- .travis.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.sh b/.travis.sh index 9967b6d1..997f7f9d 100644 --- a/.travis.sh +++ b/.travis.sh @@ -28,6 +28,11 @@ function setup { # Install ROS sudo sh -c "echo \"deb http://packages.ros.org/ros-shadow-fixed/ubuntu `lsb_release -cs` main\" > /etc/apt/sources.list.d/ros-latest.list" wget http://packages.ros.org/ros.key -O - | sudo apt-key add - + # Setup EoL repository + if [[ "$ROS_DISTRO" == "hydro" || "$ROS_DISTRO" == "jade" || "$ROS_DISTRO" == "lunar" ]]; then + sudo -E sh -c 'echo "deb http://snapshots.ros.org/$ROS_DISTRO/final/ubuntu `lsb_release -sc` main" >> /etc/apt/sources.list.d/ros-latest.list' + sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 0xCBF125EA + fi sudo apt-get update -qq # Install ROS sudo apt-get install -y -q python-catkin-pkg python-catkin-tools python-rosdep python-wstool python-rosinstall-generator ros-$ROS_DISTRO-catkin