-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMakefile
29 lines (22 loc) · 849 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
SHELL :=/bin/bash
all: build
.PHONY: all
# Include the library makefile
include $(addprefix ./vendor/github.com/openshift/build-machinery-go/make/, \
golang.mk \
targets/openshift/deps.mk \
)
GO_PACKAGES :=$(addsuffix ...,$(addprefix ./,$(filter-out test/, $(filter-out vendor/,$(filter-out hack/,$(wildcard */))))))
GO_BUILD_PACKAGES :=$(GO_PACKAGES)
GO_BUILD_PACKAGES_EXPANDED :=$(GO_BUILD_PACKAGES)
GO_BUILD_FLAGS :=-trimpath -tags=kafka
GO_TEST_FLAGS :=-race -tags=kafka
# LDFLAGS are not needed for dummy builds (saving time on calling git commands)
GO_LD_FLAGS:=
verify-gocilint:
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.6
${GOPATH}/bin/golangci-lint run --build-tags=kafka --timeout=3m ./...
verify-govet:
go vet -mod=vendor -tags=kafka ./...
verify: verify-gocilint
include ./test/integration-test.mk