mirror of
https://github.com/Luzifer/webcheck.git
synced 2024-11-08 22:50:01 +00:00
30 lines
361 B
Makefile
30 lines
361 B
Makefile
|
.PHONY: all
|
||
|
|
||
|
doc:
|
||
|
godoc `pwd`
|
||
|
|
||
|
webdoc:
|
||
|
godoc -http=:44444
|
||
|
|
||
|
format:
|
||
|
go fmt
|
||
|
|
||
|
test:
|
||
|
go test -race
|
||
|
|
||
|
check: format test
|
||
|
|
||
|
benchmark:
|
||
|
go test -bench=. -benchmem
|
||
|
|
||
|
coverage:
|
||
|
go test -coverprofile=coverage.out
|
||
|
go tool cover -html="coverage.out"
|
||
|
|
||
|
lint: format
|
||
|
go get github.com/alecthomas/gometalinter
|
||
|
gometalinter --install
|
||
|
gometalinter
|
||
|
|
||
|
default: lint test
|