forked from grafana/mimir-proxies
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (22 loc) · 822 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 packages-minor-autoupdate
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
build: ## Build local binaries
bash ./scripts/compile_commands.sh
test: ## Run golang tests
go test -race ./...
coverage-output: ## Get coverage output to cover.out
go test ./... -coverprofile=cover.out
coverage-show-func: ## Display coverage output
go tool cover -func cover.out
protobuf: ## Runs protoc command to generate pb files
bash ./scripts/genprotobuf.sh
packages-minor-autoupdate:
go mod edit -json \
| jq ".Require \
| map(select(.Indirect | not).Path) \
| map(select( \
. != \"github.com/bradfitz/gomemcache\" \
and . != \"github.com/prometheus/prometheus\" \
))" \
| tr -d '\n' | tr -d ' '