diff --git a/.ci/publish_coverage.sh b/.ci/publish_coverage.sh index b32b2b23bb..e00173c9fe 100755 --- a/.ci/publish_coverage.sh +++ b/.ci/publish_coverage.sh @@ -6,9 +6,37 @@ trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG trap 'echo "$0: \"${last_command}\" command failed with exit code $?"' ERR ARTIFACT_FOLDER=$1 +WORKSPACE=/tmp/workspace +# install lcov sudo apt-get -y -q install lcov +# clone the sources + +mkdir -p $WORKSPACE/src +cd $WORKSPACE/src + +LIST=mrs +ARCH=amd64 + +YAML_FILE=$LIST.yaml + +REPOS=$(./.ci/parse_yaml.py $YAML_FILE $ARCH) + +echo "$REPOS" | while IFS= read -r REPO; do + + PACKAGE=$(echo "$REPO" | awk '{print $1}') + URL=$(echo "$REPO" | awk '{print $2}') + TEST=$(echo "$REPO" | awk '{print $6}') + + if [[ "$TEST" != "True" ]]; then + continue + fi + + git clone $URL $PACKAGE + +done + # are there any coverage files? ARGS="" diff --git a/.ci/test.sh b/.ci/test.sh index c707448d48..1b7b7a865a 100755 --- a/.ci/test.sh +++ b/.ci/test.sh @@ -67,7 +67,7 @@ rosdep install --from-path . echo "$0: building the workspace" -catkin build +catkin build --limit-status-rate 0.2 echo "$0: testing"