Skip to content

Commit

Permalink
Test with -race and -cover.
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Moyer <moyer@heptio.com>
  • Loading branch information
mattmoyer committed Jan 25, 2018
1 parent 1443fd0 commit cb83f92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
default: build

GITHUB_REPO ?= github.com/heptio/authenticator
GORELEASER := $(shell command -v goreleaser 2> /dev/null)

.PHONY: build test format
Expand All @@ -11,7 +12,7 @@ endif
$(GORELEASER) --skip-publish --rm-dist --snapshot

test:
go test -v ./...
go test -v -cover -race $(GITHUB_REPO)/...

format:
test -z "$$(find . -path ./vendor -prune -type f -o -name '*.go' -exec gofmt -d {} + | tee /dev/stderr)" || \
Expand Down

0 comments on commit cb83f92

Please sign in to comment.