fix(coverage): use `go list` instead of `godir`

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
pull/6748/head
Matthew Fisher 5 years ago
parent b048f8914b
commit 630134a904
No known key found for this signature in database
GPG Key ID: 92AA783CBAAE8E3B

@ -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"

Loading…
Cancel
Save