Skip to content

Commit

Permalink
Change make test target to run all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Hagai Barel committed Jan 24, 2019
1 parent 3f05a71 commit 5d967e4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
HAS_DEP := $(shell command -v dep;)
DEP_VERSION := v0.5.0
TEST_FILES := $(shell find ./test -type f -name "*.go")
GIT_TAG := $(shell git describe --tags --always)
GIT_COMMIT := $(shell git rev-parse --short HEAD)
LDFLAGS := "-X main.GitTag=${GIT_TAG} -X main.GitCommit=${GIT_COMMIT}"
Expand All @@ -12,14 +11,14 @@ TRAVIS := $(shell printenv TRAVIS)
all: bootstrap test build docker push

fmt:
go fmt ./pkg/... ./cmd/...
go fmt ./...

vet:
go vet ./pkg/... ./cmd/...
go vet ./...

# Run tests
test: fmt vet
for f in $(TEST_FILES); do go test -v $$f; done
go test ./... -coverprofile cover.out

# Build orca binary
build: fmt vet
Expand Down

0 comments on commit 5d967e4

Please sign in to comment.