mirror of
https://github.com/helm/helm.git
synced 2026-06-30 19:57:48 +00:00
fix(coverage): use go list instead of godir
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
This commit is contained in:
@@ -22,11 +22,10 @@ profile="${coverdir}/cover.out"
|
||||
|
||||
pushd /
|
||||
hash goveralls 2>/dev/null || go get github.com/mattn/goveralls
|
||||
hash godir 2>/dev/null || go get github.com/Masterminds/godir
|
||||
popd
|
||||
|
||||
generate_cover_data() {
|
||||
for d in $(godir) ; do
|
||||
for d in $(go list ./...) ; do
|
||||
(
|
||||
local output="${coverdir}/${d//\//-}.cover"
|
||||
go test -coverprofile="${output}" -covermode="$covermode" "$d"
|
||||
|
||||
Reference in New Issue
Block a user