-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
43 lines (32 loc) · 1.06 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
.PHONY: help
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
build-local: ## Builds local versions of images
bash ./scripts/build-local-images.sh
acceptance-tests: ## Runs the acceptance tests, expecting the images to be already built
go test -count 1 -v -race -tags=acceptance ./acceptance/...
test: ## Run golang tests
go test -race ./...
coverage-output:
go test ./... -coverprofile=cover.out
coverage-show-func:
go tool cover -func cover.out
# .PHONY: build
# build: ## Build the grpc-cortex-gw docker image
# build:
# docker build --build-arg=revision=$(GIT_REVISION) -t jdbgrafana/grpc-cortex-gw .
# CI
drone:
scripts/generate-drone-yml.sh
drone-utilities:
scripts/build-drone-utilities.sh
packages-minor-autoupdate:
go mod edit -json \
| jq ".Require \
| map(select(.Indirect | not).Path) \
| map(select( \
. != \"github.com/thanos-io/thanos\" \
))" \
| tr -d '\n' | tr -d ' '