Skip to content

Commit

Permalink
Update make rules (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
dekkagaijin authored Mar 20, 2018
1 parent 0a92527 commit d81a568
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ OUT_DIR := bin
# The directory to dump generated mocks
MOCK_DIR := mock
# The non-vendor golang sources to validate.
SRCS = $(shell find . -name "*.go" -type f | grep -v vendor/)
SRCS = $(go list ./... | grep -v vendor)

all: clean bin

Expand Down Expand Up @@ -41,10 +41,10 @@ mocks:
@find ${MOCK_DIR} -name '*.go.bak' -exec rm {} \;

test: clean deps test-bin
@go test -timeout 10s -v ./...
@go test -race -timeout 10s -v ./...

tests-unit: deps
@go test -timeout 10s -v -tags=unit ./...
@go test -race -timeout 10s -v -tags=unit ./...

vet:
@go vet ./...
Expand Down
1 change: 0 additions & 1 deletion test/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
)

func TestVersion(t *testing.T) {
t.Parallel() // No resource contention.
helper := helperCmd([]string{"version"})

var out bytes.Buffer
Expand Down

0 comments on commit d81a568

Please sign in to comment.