Files
gocqlx/Makefile

41 lines
736 B
Makefile
Raw Normal View History

all: check test integration-test
2017-07-21 15:13:09 +02:00
.PHONY: check
2017-09-21 21:33:43 +02:00
check: .check-fmt .check-vet .check-lint .check-misspell .check-ineffassign
.PHONY: .check-fmt
.check-fmt:
@gofmt -s -l . | ifne false
.PHONY: .check-vet
.check-vet:
@go vet ./...
.PHONY: .check-lint
.check-lint:
@golint -set_exit_status ./...
.PHONY: .check-misspell
.check-misspell:
@misspell ./...
.PHONY: .check-ineffassign
.check-ineffassign:
@ineffassign .
2017-07-21 15:13:09 +02:00
.PHONY: test
test:
2017-09-21 21:33:43 +02:00
@go test -cover -race ./...
.PHONY: integration-test
integration-test:
2017-09-21 21:33:43 +02:00
@go test -cover -tags integration .
2017-07-21 15:13:09 +02:00
.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