forked from scylladb/gocqlx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (30 loc) · 736 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
all: check test integration-test
.PHONY: check
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 .
.PHONY: test
test:
@go test -cover -race ./...
.PHONY: integration-test
integration-test:
@go test -cover -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