mirror of
https://github.com/kyverno/policy-reporter.git
synced 2024-12-14 11:57:32 +00:00
fce86e7a60
* Update WatchStructure to work with one Watch * Implement new Tests * Split ReportClient into Multiple Objects * Helm Chart updates
25 lines
394 B
Makefile
25 lines
394 B
Makefile
GO ?= go
|
|
|
|
BUILD ?= build
|
|
|
|
all: build
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf $(BUILD)
|
|
|
|
.PHONY: prepare
|
|
prepare:
|
|
mkdir -p $(BUILD)
|
|
|
|
.PHONY: test
|
|
test:
|
|
go test -v ./... -timeout=120s
|
|
|
|
.PHONY: coverage
|
|
coverage:
|
|
go test -v ./... -covermode=count -coverprofile=coverage.out -timeout=120s
|
|
|
|
.PHONY: build
|
|
build: prepare
|
|
CGO_ENABLED=0 $(GO) build -v -ldflags="-s -w" $(GOFLAGS) -o $(BUILD)/policyreporter .
|