aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Grayson Koonce <grayson.koonce@gmail.com> 2016-10-12 11:04:26 -0700
committerGravatar GitHub <noreply@github.com> 2016-10-12 11:04:26 -0700
commitac8374fd17e30fca9a7773a2a6f690a7ea4d2ec9 (patch)
treee9a61adde4bc5eef80583f3e1d6f9379a20b4f99 /Makefile
parentb80c4f3e920994823061eb05dc0a5bc3881ddb02 (diff)
downloadsally-ac8374fd17e30fca9a7773a2a6f690a7ea4d2ec9.tar.gz
sally-ac8374fd17e30fca9a7773a2a6f690a7ea4d2ec9.tar.zst
sally-ac8374fd17e30fca9a7773a2a6f690a7ea4d2ec9.zip
Rework as HTTP server (#15)
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