-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (18 loc) · 586 Bytes
/
Copy pathMakefile
File metadata and controls
25 lines (18 loc) · 586 Bytes
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
SHELL := bash
ARTIFACT_NAME := external-dns-efficientip-webhook
TESTPARALLELISM := 4
WORKING_DIR := $(shell pwd)
.PHONY: clean
clean::
rm -rf $(WORKING_DIR)/bin
.PHONY: build
build::
go build -o $(WORKING_DIR)/bin/${ARTIFACT_NAME} ./cmd/webhook
chmod +x $(WORKING_DIR)/bin/${ARTIFACT_NAME}
.PHONY: test
test::
go test -v -tags=all -parallel ${TESTPARALLELISM} -timeout 2h -covermode atomic -coverprofile=covprofile ./...
.PHONY: lint
lint: ## Run golangci-lint against code.
mkdir -p build/reports
go run github.com/golangci/golangci-lint/cmd/golangci-lint run --timeout 2m