-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
34 lines (25 loc) · 968 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
# REQUIRED SECTION
include ./.golang.mk
# END OF REQUIRED SECTION
# Run 'make help' for the list of default targets
# Example of overriding of default target
#test: ## run test with coverage using the vendor directory
# go test -mod vendor -v -cover ./... -coverprofile cover.out
build: ## build the v2 code
@echo ">>> go build v2"
@cd v2 && $(GO) build -ldflags="$(LD_FLAGS)" ./...
test: ## run test with coverage, v2 only
@echo ">>> go test v2"
@cd v2 && $(GO) test -v -cover ./... -coverprofile ../cover.out
lint: ## run golangci-lint v2 using the configuration in .golangci.yml
@echo ">>> golangci-lint run v2"
@cd v2 && $(GOBIN)/golangci-lint run -c ../.golangci.yml
# Threshold increased from default
coverage: test
goverreport -coverprofile=cover.out -sort=block -order=desc -threshold=91
runner:
@echo ">>> not supported in this project"
licenses:
@echo ">>> not supported in this project"
scanner:
@echo ">>> not supported in this project"