fix(coverage): cd to root dir to avoid adding godir to go modules

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

@ -22,6 +22,6 @@ linters-settings:
gofmt:
simplify: true
goimports:
local-prefixes: helm.sh/helm
local-prefixes: helm.sh/helm/v3
dupl:
threshold: 400

@ -20,8 +20,10 @@ covermode=${COVERMODE:-atomic}
coverdir=$(mktemp -d /tmp/coverage.XXXXXXXXXX)
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

Loading…
Cancel
Save