File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- set -euo pipefail
2+ set -e
3+
4+ # Get the absolute directory of this script
5+ SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
6+ # Get the repository root
7+ REPO_ROOT=$( dirname " $SCRIPT_DIR " )
8+
9+ # Navigate to the repo root to ensure all paths are correct
10+ cd " $REPO_ROOT "
311
412if [ $# -eq 0 ]; then
513 echo " No packages specified, skipping build."
@@ -13,10 +21,10 @@ source /opt/ros/jazzy/setup.bash
1321
1422# Install dependencies
1523rosdep update
16- rosdep install --from-paths src --ignore-src -y
24+ rosdep install --from-paths modules --ignore-src -y
1725
1826# Build
1927colcon build --packages-up-to " $@ " --symlink-install --event-handlers console_direct+
2028
2129# Test
22- colcon test --packages-up-to " $@ " --event-handlers console +
30+ colcon test --packages-up-to " $@ " --event-handlers console_direct +
You can’t perform that action at this time.
0 commit comments