-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
36 lines (27 loc) · 949 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
30
31
32
33
34
35
36
.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
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 ' '
.PHONY: assert-no-changed-files
assert-no-changed-files:
@git update-index --refresh
@git diff-index --quiet HEAD --