Merge pull request #30611 from helm/gjenkins/rm_goveralls

chore: Remove 'coveralls'
pull/30623/head
Matt Farina 7 months ago committed by GitHub
commit 6ce6588e94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -20,10 +20,6 @@ covermode=${COVERMODE:-atomic}
coverdir=$(mktemp -d /tmp/coverage.XXXXXXXXXX)
profile="${coverdir}/cover.out"
pushd /
hash goveralls 2>/dev/null || go install github.com/mattn/goveralls@v0.0.11
popd
generate_cover_data() {
for d in $(go list ./...) ; do
(
@ -36,10 +32,6 @@ generate_cover_data() {
grep -h -v "^mode:" "$coverdir"/*.cover >>"$profile"
}
push_to_coveralls() {
goveralls -coverprofile="${profile}" -service=github
}
generate_cover_data
go tool cover -func "${profile}"
@ -47,8 +39,5 @@ case "${1-}" in
--html)
go tool cover -html "${profile}"
;;
--coveralls)
push_to_coveralls
;;
esac

Loading…
Cancel
Save