-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #127 from LukeWinikates/make-godoc
add make godoc target so new contributors can easily review godoc
- Loading branch information
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
.PHONY: test godoc | ||
|
||
test: | ||
go test -timeout 10m -v -race ./... | ||
go vet ./... | ||
go vet ./... | ||
|
||
godoc: | ||
scripts/godoc-install-hint.sh | ||
@echo "\n\nlaunching godoc server. see docs here: http://localhost:6060/pkg/github.com/wavefronthq/wavefront-sdk-go/senders \n\n" | ||
godoc -http=:6060 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
set -eou pipefail | ||
|
||
which godoc >/dev/null || ( | ||
cat <<-'EOF' | ||
The godoc cli is not installed. | ||
Install godoc somewhere on your $PATH. | ||
For example, if /usr/local/bin is on your $PATH: | ||
GOBIN=/usr/local/bin/ go install golang.org/x/tools/cmd/godoc@latest | ||
EOF | ||
) |