Skip to content

Commit 3960064

Browse files
Merge pull request openshift#7 from cblecker/make-3
Makefile updates to fix CI
2 parents 60de397 + fd29bfd commit 3960064

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module github.com/openshift/managed-velero-operator
22

33
require (
4+
github.com/NYTimes/gziphandler v1.0.1 // indirect
45
github.com/openshift/api v3.9.1-0.20190806225813-d2972510af76+incompatible
56
github.com/operator-framework/operator-sdk v0.10.1-0.20190809191117-c1e2eae6580e
67
github.com/spf13/pflag v1.0.3

standard.mk

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export GO111MODULE=on
3030
GOENV=GOOS=linux GOARCH=amd64 CGO_ENABLED=0
3131
GOFLAGS=-gcflags="all=-trimpath=${GOPATH}" -asmflags="all=-trimpath=${GOPATH}"
3232

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

@@ -44,7 +43,7 @@ clean:
4443

4544
.PHONY: isclean
4645
isclean:
47-
@(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)
46+
@(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)
4847

4948
.PHONY: build
5049
build: isclean envtest
@@ -66,12 +65,12 @@ gobuild: ## Build binary
6665

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

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

7675
.PHONY: test
7776
test: envtest gotest

0 commit comments

Comments
 (0)