coverage.sh (nsq-1.2.0) | : | coverage.sh (nsq-1.2.1) | ||
---|---|---|---|---|
skipping to change at line 44 | skipping to change at line 44 | |||
} | } | |||
show_csv_report() { | show_csv_report() { | |||
go tool cover -func="$profile" -o="$workdir"/coverage.csv | go tool cover -func="$profile" -o="$workdir"/coverage.csv | |||
} | } | |||
push_to_coveralls() { | push_to_coveralls() { | |||
echo "Pushing coverage statistics to coveralls.io" | echo "Pushing coverage statistics to coveralls.io" | |||
# ignore failure to push - it happens | # ignore failure to push - it happens | |||
$GOPATH/bin/goveralls -coverprofile="$profile" \ | $GOPATH/bin/goveralls -coverprofile="$profile" \ | |||
-service=travis-ci \ | -service=github \ | |||
-ignore="nsqadmin/bindata.go" || true | -ignore="nsqadmin/bindata.go" || true | |||
} | } | |||
generate_cover_data $(go list ./... | grep -v /vendor/) | generate_cover_data $(go list ./... | grep -v /vendor/) | |||
show_csv_report | show_csv_report | |||
case "$1" in | case "$1" in | |||
"") | "") | |||
;; | ;; | |||
--html) | --html) | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |