Skip to content

Commit

Permalink
Add Github Action coverage support
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Bainian <[email protected]>
  • Loading branch information
Briancbn committed Jun 30, 2020
1 parent a7a6b98 commit 7e1cf02
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,15 @@ DIR_THIS="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export TARGET_REPO_PATH=${TARGET_REPO_PATH:-$(pwd)}
export TARGET_REPO_NAME=${TARGET_REPO_NAME:-${TARGET_REPO_PATH##*/}}

function upload_coverage_report {
case "$CODE_COVERAGE" in
"coveralls.io")
sudo apt install -qq -y python3-pip python3-setuptools python3-dev python3-wheel
python3 -m pip install --user coveralls
python3 -m coveralls --merge=.ici_coverage_report/coverage.json
;;
esac
}

env "$@" bash "$DIR_THIS/industrial_ci/src/ci_main.sh"
"$@" upload_coverage_report

0 comments on commit 7e1cf02

Please sign in to comment.