Skip to content

Commit

Permalink
Add Makefile
Browse files Browse the repository at this point in the history
Fix #1
  • Loading branch information
monicasarbu committed Apr 6, 2015
1 parent 9bfdee6 commit abe3034
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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=. ./...

0 comments on commit abe3034

Please sign in to comment.