travis integration

This commit is contained in:
Michał Matczuk committed 2017-07-24 13:21:29 +02:00
1 parent 6653e63afd
commit 582dfdc6ef
4 files changed
+45 -1

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
all: check test
.PHONY: check
check:
gofmt -s -l . | ifne false
go vet ./...
golint ./...
misspell ./...
ineffassign .
.PHONY: test
test:
go test -race ./...
go test -tags integration ./...
.PHONY: get-deps
get-deps:
go get -t ./...
go get -u github.com/golang/lint/golint
go get -u github.com/client9/misspell/cmd/misspell
go get -u github.com/gordonklaus/ineffassign