Skip to content

Commit

Permalink
Add test deps and lint bypass to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshay Shah committed Apr 6, 2016
1 parent 8e00e00 commit 73819f9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ endif

.PHONY: lint
lint:
ifdef SHOULD_LINT
@rm -rf lint.log
@echo "Checking formatting..."
@gofmt -d -s $(PKG_FILES) 2>&1 | tee lint.log
Expand All @@ -45,14 +46,17 @@ lint:
@echo "Checking for unresolved FIXMEs..."
@git grep -i fixme | grep -v -e vendor -e Makefile | tee -a lint.log
@[ ! -s lint.log ]
else
@echo "Skipping linters on" $(GO_VERSION)
endif

.PHONY: test
test:
go test -race $(PKGS)

.PHONY: coveralls
coveralls:
goveralls -service=travis-ci $(PKGS)
coveralls: test
goveralls -service=travis-ci

.PHONY: bench
BENCH ?= .
Expand Down

0 comments on commit 73819f9

Please sign in to comment.