From ea2ade96e1e0790ab94075a191147200e205eb89 Mon Sep 17 00:00:00 2001 From: Monica Sarbu Date: Mon, 6 Apr 2015 12:01:19 +0200 Subject: [PATCH] Add Makefile Fix #1 --- Makefile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 00000000000..8a5915de2a9 --- /dev/null +++ b/Makefile @@ -0,0 +1,30 @@ +.PHONY: build +build: + go build ./... + +.PHONY: deps +deps: + go get -t ./... + # goautotest is used from the Makefile to run tests in a loop + go get github.com/tsg/goautotest + +.PHONY: gofmt +gofmt: + go fmt ./... + +.PHONY: test +test: + go test -short ./... + +.PHONY: autotest +autotest: + goautotest -short ./... + +.PHONY: testlong +testlong: + go vet ./... + go test ./... + +.PHONY: benchmark +benchmark: + go test -short -bench=. ./...