Skip to content

Commit

Permalink
coverage.sh: more robust goveralls path
Browse files Browse the repository at this point in the history
now works for any $GOPATH, not just $HOME/gopath
  • Loading branch information
soar authored and ploxiln committed Nov 5, 2017
1 parent 0c8199b commit c521a35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ show_csv_report() {
push_to_coveralls() {
echo "Pushing coverage statistics to coveralls.io"
# ignore failure to push - it happens
$HOME/gopath/bin/goveralls -coverprofile="$profile" \
-service=travis-ci \
-ignore="nsqadmin/bindata.go" || true
$GOPATH/bin/goveralls -coverprofile="$profile" \
-service=travis-ci \
-ignore="nsqadmin/bindata.go" || true
}

generate_cover_data $(go list ./... | grep -v /vendor/)
Expand Down

0 comments on commit c521a35

Please sign in to comment.