add makefile for some convenient commands

Этот коммит содержится в:
gedi 2015-06-25 10:23:20 +03:00
родитель 3268237f5c
коммит 7b805b1ee7

14
Makefile Обычный файл
Просмотреть файл

@ -0,0 +1,14 @@
.PHONY: test
# runs all necessary tests
test:
@sh -c 'if [ ! -z "$(go fmt ./...)" ]; then exit 1; fi'
golint ./...
go vet ./...
go test ./...
go run cmd/godog/main.go -f progress
# updates dependencies
deps:
go get -u golang.org/x/tools/imports
go get -u github.com/shiena/ansicolor