added test step to Makefile

This commit is contained in:
dickeyxxx
2014-09-18 10:20:55 -07:00
parent 1394342dd2
commit 4375d794ad
+5
View File
@@ -1,6 +1,8 @@
BIN = forego
SRC = $(shell ls *.go)
.PHONY: all build clean install test lint
all: build
build: $(BIN)
@@ -14,5 +16,8 @@ install: forego
lint: $(SRC)
go fmt
test: lint
go test ./... -cover
$(BIN): $(SRC)
godep go build -o $@