diff --git a/.travis.sh b/.travis.sh index c6b63717f22..76799f8904f 100755 --- a/.travis.sh +++ b/.travis.sh @@ -58,9 +58,16 @@ travis_time_start setup_ros export CI_SOURCE_PATH=$(pwd) export REPOSITORY_NAME=${PWD##*/} echo "Testing branch $TRAVIS_BRANCH of $REPOSITORY_NAME" -sudo -E sh -c 'echo "deb http://packages.ros.org/ros-shadow-fixed/ubuntu ${DISTRO} main" > /etc/apt/sources.list.d/ros-latest.list' -wget http://packages.ros.org/ros.key -O - | sudo apt-key add - +if [ $ROS_DISTRO == "hydro" ] # hydro is one of EOL distros so we cannot use packages.ros.org +then + sudo -E sh -c 'echo "deb http://snapshots.ros.org/${ROS_DISTRO}/final/ubuntu ${DISTRO} main" > /etc/apt/sources.list.d/ros-latest.list' + sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key AD19BAB3CBF125EA +else + sudo -E sh -c 'echo "deb http://packages.ros.org/ros-shadow-fixed/ubuntu ${DISTRO} main" > /etc/apt/sources.list.d/ros-latest.list' + wget http://packages.ros.org/ros.key -O - | sudo apt-key add - +fi sudo apt-get update -qq +sudo apt-get install dpkg -y # for https://github.com/ros/rosdistro/issues/19481 travis_time_end travis_time_start disable_ssl