File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 55SHELL := /bin/bash
66PKG := github.com/operator-framework/operator-lifecycle-manager
77MOD_FLAGS := $(shell (go version | grep -q -E "1\.(11|12) ") && echo -mod=vendor)
8- CMDS := $(addprefix bin/, $(shell go list $(MOD_FLAGS ) ./cmd/... | xargs -I{} basename {}) )
8+ CMDS := $(shell go list $(MOD_FLAGS ) ./cmd/...)
9+ TCMDS := $(shell go list $(MOD_FLAGS ) ./test/e2e/...)
910CODEGEN_INTERNAL := ./vendor/k8s.io/code-generator/generate_internal_groups.sh
1011MOCKGEN := ./scripts/generate_mocks.sh
1112# counterfeiter := $(GOBIN)/counterfeiter
@@ -42,6 +43,11 @@ coverage-html: cover.out
4243build : build_cmd=build
4344build : clean $(CMDS )
4445
46+ test-bare : BUILD_TAGS=-tags=bare
47+ test-bare : clean $(TCMDS )
48+
49+ test-bin : clean $(TCMDS )
50+
4551# build versions of the binaries with coverage enabled
4652build-coverage : build_cmd=test -c -covermode=count -coverpkg ./pkg/controller/...
4753build-coverage : clean $(CMDS )
@@ -52,7 +58,10 @@ build-linux: clean $(CMDS)
5258
5359$(CMDS ) : version_flags=-ldflags "-w -X $(PKG ) /pkg/version.GitCommit=`git rev-parse --short HEAD` -X $(PKG ) /pkg/version.OLMVersion=`cat OLM_VERSION`"
5460$(CMDS ) :
55- CGO_ENABLED=0 $(arch_flags ) go $(build_cmd ) $(MOD_FLAGS ) $(version_flags ) -o $@ $(PKG ) /cmd/$(shell basename $@ ) ;
61+ CGO_ENABLED=0 $(arch_flags ) go $(build_cmd ) $(MOD_FLAGS ) $(version_flags ) -o bin/$(shell basename $@ ) $@
62+
63+ $(TCMDS ) :
64+ CGO_ENABLED=0 go test -c $(BUILD_TAGS ) $(MOD_FLAGS ) -o bin/$(shell basename $@ ) $@
5665
5766run-local : build-linux
5867 rm -rf build
You can’t perform that action at this time.
0 commit comments