-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (20 loc) · 830 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.PHONY: help clean pkgsite report test
export GOTOOLCHAIN=local
help: ## list available targets
@# Shamelessly stolen from Gomega's Makefile
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-16s\033[0m %s\n", $$1, $$2}'
clean: ## cleans up build and testing artefacts
rm -f coverage.html coverage.out coverage.txt
coverage: ## gathers coverage and updates README badge
@scripts/cov.sh
pkgsite: ## serves Go documentation on port 6060
@echo "navigate to: http://localhost:6060/github.com/thediveo/morbyd"
@scripts/pkgsite.sh
report: ## run goreportcard on this module
@scripts/goreportcard.sh
test: ## run unit tests
go test -v -p=1 -count=1 -race ./...
vuln: ## run go vulnerabilities check
@scripts/vuln.sh
gen: ## (re)generate mock
@scripts/gogen.sh