Skip to content

Commit

Permalink
conditionally collect dependency_sources
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Mar 31, 2023
1 parent eb1dfb3 commit 6cba5b2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions industrial_ci/src/tests/source_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,19 @@ function run_source_tests {

extend=${UNDERLAY:?}

local dependency_sources=() # source folders to be ignored for rosdep install
dependency_sources+=("${UNDERLAY:?}")

if [ -n "$UPSTREAM_WORKSPACE" ]; then
ici_with_ws "$upstream_ws" ici_build_workspace "upstream" "$extend" "$upstream_ws" "${UNDERLAY:?}"
ici_with_ws "$upstream_ws" ici_build_workspace "upstream" "$extend" "$upstream_ws" "${dependency_sources[@]}"
extend="$(ici_extend_space "$upstream_ws")"
dependency_sources+=("$upstream_ws")
fi

if [ "${CLANG_TIDY:-false}" != false ]; then
TARGET_CMAKE_ARGS="$TARGET_CMAKE_ARGS -DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
fi
ici_with_ws "$target_ws" ici_build_workspace "target" "$extend" "$target_ws" "${UNDERLAY:?}" "$(ici_extend_space "$upstream_ws")"
ici_with_ws "$target_ws" ici_build_workspace "target" "$extend" "$target_ws" "${dependency_sources[@]}"

if [ "$NOT_TEST_BUILD" != "true" ]; then
ici_with_ws "$target_ws" ici_test_workspace "target" "$extend" "$target_ws"
Expand All @@ -206,8 +210,9 @@ function run_source_tests {
fi

extend="$(ici_extend_space "$target_ws")"
dependency_sources+=("$target_ws")
if [ -n "$DOWNSTREAM_WORKSPACE" ]; then
ici_with_ws "$downstream_ws" ici_build_workspace "downstream" "$extend" "$downstream_ws" "${UNDERLAY:?}" "$(ici_extend_space "$upstream_ws")" "$(ici_extend_space "$target_ws")"
ici_with_ws "$downstream_ws" ici_build_workspace "downstream" "$extend" "$downstream_ws" "${dependency_sources[@]}"
#extend="$(ici_extend_space "$downstream_ws")"

if [ "$NOT_TEST_DOWNSTREAM" != "true" ]; then
Expand Down

0 comments on commit 6cba5b2

Please sign in to comment.