File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -58,9 +58,14 @@ travis_time_start setup_ros
58
58
export CI_SOURCE_PATH=$( pwd)
59
59
export REPOSITORY_NAME=${PWD##*/ }
60
60
echo " Testing branch $TRAVIS_BRANCH of $REPOSITORY_NAME "
61
- sudo -E sh -c ' echo "deb http://packages.ros.org/ros-testing/ubuntu ${DISTRO} main" > /etc/apt/sources.list.d/ros-latest.list'
62
- sudo -E sh -c ' echo "deb http://snapshots.ros.org/hydro/final/ubuntu ${DISTRO} main" > /etc/apt/sources.list.d/ros-latest.list'
63
- wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
61
+ if [ $ROS_DISTRO == " hydro" ] # hydro is one of EOL distros so we cannot use packages.ros.org
62
+ then
63
+ sudo -E sh -c ' echo "deb http://snapshots.ros.org/${ROS_DISTRO}/final/ubuntu ${DISTRO} main" > /etc/apt/sources.list.d/ros-latest.list'
64
+ sudo apt-key adv --keyserver ' hkp://keyserver.ubuntu.com:80' --recv-key AD19BAB3CBF125EA
65
+ else
66
+ sudo -E sh -c ' echo "deb http://packages.ros.org/ros-shadow-fixed/ubuntu ${DISTRO} main" > /etc/apt/sources.list.d/ros-latest.list'
67
+ wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
68
+ fi
64
69
sudo apt-get update -qq
65
70
sudo apt-get install dpkg -y # for https://github.com/ros/rosdistro/issues/19481
66
71
You can’t perform that action at this time.
0 commit comments