Skip to content

Commit a2f43c9

Browse files
committed
set keyring for snapshots.ros.org
1 parent 97e62c7 commit a2f43c9

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.travis.sh

+8-3
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,14 @@ travis_time_start setup_ros
5858
export CI_SOURCE_PATH=$(pwd)
5959
export REPOSITORY_NAME=${PWD##*/}
6060
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+
elif
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
6469
sudo apt-get update -qq
6570
sudo apt-get install dpkg -y # for https://github.com/ros/rosdistro/issues/19481
6671

0 commit comments

Comments
 (0)