Skip to content

Commit

Permalink
move to vcs tool for jazzy
Browse files Browse the repository at this point in the history
  • Loading branch information
David Conner committed Jun 4, 2024
1 parent cf50560 commit 63331c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions ci_scripts/before_script.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
set -e

# clone required packages
cd ~/colcon_ws/src
wstool init
cd ~/colcon_ws
for rosinstall in ~/flexbe_ci/rosinstall/*.rosinstall; do
if [ "$(basename $rosinstall .rosinstall)" == "$BASE_REPO" ]; then
ln -s $BASE_PATH ~/colcon_ws/src/$BASE_REPO
else
wstool merge $rosinstall
vcs import src < $rosinstall --workers=1
fi
done
wstool up
cd ~/colcon_ws
vcs pull src
rosdep install -y --from-paths src --ignore-src --rosdistro=${ROS_DISTRO}
8 changes: 3 additions & 5 deletions ci_scripts/run_rosinstall.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
set -e

# clone required packages
cd ~/colcon_ws/src
wstool init
cd ~/colcon_ws
for rosinstall in ~/flexbe_ci/rosinstall/*.rosinstall; do
REPO_INFO=(${GITHUB_REPOSITORY//\// })
REPO_NAME=${REPO_INFO[1]}
Expand All @@ -12,11 +11,10 @@ for rosinstall in ~/flexbe_ci/rosinstall/*.rosinstall; do
ln -s $GITHUB_WORKSPACE ~/colcon_ws/src/$REPO_NAME
else
echo "[REPO:$rosinstall] Cloning via rosinstall"
wstool merge $rosinstall
vcs import src < $rosinstall --workers=1
fi
done
wstool up
cd ~/colcon_ws
vcs pull src
rosdep install -y --from-paths src --ignore-src --rosdistro=${ROS_DISTRO}

source /opt/ros/$ROS_DISTRO/setup.bash
Expand Down

0 comments on commit 63331c9

Please sign in to comment.