Skip to content

Commit

Permalink
Merge pull request #7 from cblecker/make-3
Browse files Browse the repository at this point in the history
Makefile updates to fix CI
  • Loading branch information
openshift-merge-robot committed Aug 17, 2019
2 parents 60de397 + fd29bfd commit 3960064
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions go.mod
@@ -1,6 +1,7 @@
module github.com/openshift/managed-velero-operator

require (
github.com/NYTimes/gziphandler v1.0.1 // indirect
github.com/openshift/api v3.9.1-0.20190806225813-d2972510af76+incompatible
github.com/operator-framework/operator-sdk v0.10.1-0.20190809191117-c1e2eae6580e
github.com/spf13/pflag v1.0.3
Expand Down
9 changes: 4 additions & 5 deletions standard.mk
Expand Up @@ -30,7 +30,6 @@ export GO111MODULE=on
GOENV=GOOS=linux GOARCH=amd64 CGO_ENABLED=0
GOFLAGS=-gcflags="all=-trimpath=${GOPATH}" -asmflags="all=-trimpath=${GOPATH}"

TESTTARGETS := $(shell go list -e ./... | egrep -v "/(vendor)/")
# ex, -v
TESTOPTS :=

Expand All @@ -44,7 +43,7 @@ clean:

.PHONY: isclean
isclean:
@(test "$(ALLOW_DIRTY_CHECKOUT)" != "false" || test 0 -eq $$(git status --porcelain | wc -l)) || (echo "Local git checkout is not clean, commit changes and try again." && exit 1)
@(test "$(ALLOW_DIRTY_CHECKOUT)" != "false" || test 0 -eq $$(git status --porcelain | wc -l)) || (echo "Local git checkout is not clean, commit changes and try again." >&2 && exit 1)

.PHONY: build
build: isclean envtest
Expand All @@ -66,12 +65,12 @@ gobuild: ## Build binary

.PHONY: gotest
gotest:
go test $(TESTOPTS) $(TESTTARGETS)
go test $(TESTOPTS) $(shell go list -mod=readonly -e ./... | egrep -v "/(vendor)/")

.PHONY: envtest
envtest:
envtest: isclean
@# test that the env target can be evaluated, required by osd-operators-registry
@eval $$($(MAKE) env --no-print-directory) || (echo 'Unable to evaulate output of `make env`. This breaks osd-operators-registry.' && exit 1)
@eval $$($(MAKE) env --no-print-directory) || (echo 'Unable to evaulate output of `make env`. This breaks osd-operators-registry.' >&2 && exit 1)

.PHONY: test
test: envtest gotest
Expand Down

0 comments on commit 3960064

Please sign in to comment.