aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d548cd7..d26439a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,22 @@
+PACKAGES := $(shell glide novendor)
+
.PHONY: install
install:
glide --version || go get github.com/Masterminds/glide
glide install
- go get -u github.com/jteeuwen/go-bindata/...
+
+
+.PHONY: lint
+lint:
+ go vet $(PACKAGES)
+ $(foreach pkg, $(PACKAGES), golint $(pkg) &&) echo "success"
+
+
+.PHONY: test
+test: lint
+ go test -race $(PACKAGES)
.PHONY: run
run:
- go generate && go build && ./sally
+ go build -i && ./sally