diff --git a/.ci/test.sh b/.ci/test.sh index 592f549c48..2c5166af6d 100755 --- a/.ci/test.sh +++ b/.ci/test.sh @@ -38,7 +38,6 @@ echo "$0: unpack the workspace" mv $ARTIFACT_FOLDER/workspace.tar.gz /tmp cd /tmp tar -xvzf workspace.tar.gz -source $WORKSPACE/devel/setup.bash ## | ---------------- clone the tested package ---------------- | @@ -53,11 +52,13 @@ echo "$THIS_TEST_REPOS" | while IFS= read -r REPO; do URL=$(echo "$REPO" | awk '{print $2}') BRANCH=$(echo "$REPO" | awk '{print $3}') - [ ! -e $PACKAGE ] && echo "$0: cloning '$URL --depth 1 --branch $BRANCH' into '$PACKAGE'" - [ ! -e $PACKAGE ] && git clone $URL --recurse-submodules --shallow-submodules --depth 1 --branch $BRANCH $PACKAGE + [ ! -e ${PACKAGE} ] && echo "$0: cloning '$URL --depth 1 --branch $BRANCH' into '$PACKAGE'" + [ ! -e ${PACKAGE} ] && git clone $URL --recurse-submodules --shallow-submodules --depth 1 --branch $BRANCH $PACKAGE done +source $WORKSPACE/devel/setup.bash + echo "$0: installing rosdep dependencies" rosdep install --from-path .