Skip to content

Commit

Permalink
Move code coverage inside docker script
Browse files Browse the repository at this point in the history
  • Loading branch information
Briancbn committed Dec 16, 2020
1 parent ef8a320 commit 00063ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 0 additions & 4 deletions industrial_ci/src/ci_main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,4 @@ fi

ici_hook "after_script"

if [ -n "$CODE_COVERAGE" ] && [ "$IN_DOCKER" = false ]; then
ici_run "upload_coverage_report" upload_coverage_report
fi

ici_exit 0
5 changes: 5 additions & 0 deletions industrial_ci/src/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ function ici_run_cmd_in_docker() {
echo "Committing container to tag: '$commit_image'"
ici_quiet docker commit -m "$DOCKER_COMMIT_MSG" "$cid" "$commit_image"
fi

if [ -n "$CODE_COVERAGE" ]; then
ici_run "upload_coverage_report" upload_coverage_report
fi

ici_quiet docker rm "$cid"
return $ret
}
Expand Down

0 comments on commit 00063ee

Please sign in to comment.