Skip to content

Commit

Permalink
set keyring for snapshots.ros.org
Browse files Browse the repository at this point in the history
  • Loading branch information
eisoku9618 committed Jun 13, 2019
1 parent 97e62c7 commit a2f43c9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,14 @@ 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-testing/ubuntu ${DISTRO} main" > /etc/apt/sources.list.d/ros-latest.list'
sudo -E sh -c 'echo "deb http://snapshots.ros.org/hydro/final/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
elif
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

Expand Down

0 comments on commit a2f43c9

Please sign in to comment.