18 lines
342 B
Makefile
18 lines
342 B
Makefile
|
all: test fmt build
|
||
|
|
||
|
test:
|
||
|
go test ./...
|
||
|
|
||
|
vet:
|
||
|
go vet ./...
|
||
|
|
||
|
fmt:
|
||
|
go list -f '{{.Dir}}' ./... | grep -v /vendor/ | xargs -L1 gofmt -l
|
||
|
test -z $$(go list -f '{{.Dir}}' ./... | grep -v /vendor/ | xargs -L1 gofmt -l)
|
||
|
|
||
|
lint:
|
||
|
go list ./... | grep -v /vendor/ | xargs -L1 golint -set_exit_status
|
||
|
|
||
|
build:
|
||
|
go build -o bin/flokati ./cmd/flokati
|