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

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
This commit is contained in:
Matthew Fisher 2019-10-22 13:52:30 -07:00
parent 0ab2bbc019
commit b048f8914b
No known key found for this signature in database
GPG key ID: 92AA783CBAAE8E3B
2 changed files with 3 additions and 1 deletions

View file

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

View file

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