Skip to content

Commit 842d99b

Browse files
Refine specific-ci to work now (#30)
Refine run_ci_build bash script Co-authored-by: JesusSilvaUtrera <jesus.silva@ekumenlabs.com>
1 parent 166cebc commit 842d99b

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

tools/run_ci_build.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
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

412
if [ $# -eq 0 ]; then
513
echo "No packages specified, skipping build."
@@ -13,10 +21,10 @@ source /opt/ros/jazzy/setup.bash
1321

1422
# Install dependencies
1523
rosdep update
16-
rosdep install --from-paths src --ignore-src -y
24+
rosdep install --from-paths modules --ignore-src -y
1725

1826
# Build
1927
colcon 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+

0 commit comments

Comments
 (0)