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: gofmt:
simplify: true simplify: true
goimports: goimports:
local-prefixes: helm.sh/helm local-prefixes: helm.sh/helm/v3
dupl: dupl:
threshold: 400 threshold: 400

@ -20,8 +20,10 @@ covermode=${COVERMODE:-atomic}
coverdir=$(mktemp -d /tmp/coverage.XXXXXXXXXX) coverdir=$(mktemp -d /tmp/coverage.XXXXXXXXXX)
profile="${coverdir}/cover.out" profile="${coverdir}/cover.out"
pushd /
hash goveralls 2>/dev/null || go get github.com/mattn/goveralls hash goveralls 2>/dev/null || go get github.com/mattn/goveralls
hash godir 2>/dev/null || go get github.com/Masterminds/godir hash godir 2>/dev/null || go get github.com/Masterminds/godir
popd
generate_cover_data() { generate_cover_data() {
for d in $(godir) ; do for d in $(godir) ; do

Loading…
Cancel
Save