Skip to content

Commit

Permalink
Upgrade ROS2 packages before building (#47)
Browse files Browse the repository at this point in the history
* Upgrade ROS2 packages for SA builds

* Upgrade ROS2 packages for CE builds
  • Loading branch information
AAlon authored Aug 28, 2019
1 parent 0e6c3be commit 0f7a7d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ros2_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 421C365BD9FF1F
echo "deb http://packages.ros.org/ros/ubuntu `lsb_release -sc` main" > /etc/apt/sources.list.d/ros-latest.list
apt update && apt install -y python3 python3-pip lcov cmake && rosdep update
apt update && apt install -y python3-rosinstall python3-colcon-common-extensions && pip3 install -U setuptools
apt list --upgradable 2>/dev/null | awk {'print $1'} | sed 's/\/.*//g' | grep $ROS_DISTRO | xargs apt install -y

REPO_NAME=$(basename -- ${TRAVIS_BUILD_DIR})
echo "repo: ${REPO_NAME} branch: ${TRAVIS_BRANCH}"
Expand Down
1 change: 1 addition & 0 deletions ros2_sa_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pip3 install -U setuptools
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | apt-key add -
sh -c 'echo "deb [arch=amd64,arm64] http://packages.ros.org/ros2/ubuntu `lsb_release -cs` main" > /etc/apt/sources.list.d/ros2-latest.list'
apt-get update && apt-get install --no-install-recommends -y python3-rosdep python3-rosinstall python3-colcon-common-extensions ros-$ROS_DISTRO-ros-base
apt list --upgradable 2>/dev/null | awk {'print $1'} | sed 's/\/.*//g' | grep $ROS_DISTRO | xargs apt install -y
pip3 install colcon-bundle colcon-ros-bundle

# Get latest colcon bundle
Expand Down

0 comments on commit 0f7a7d3

Please sign in to comment.