23 lines
431 B
Makefile
23 lines
431 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 -v -a -o bin/flokati ./cmd/flokati
|
|
|
|
docker:
|
|
docker build -t dr.dnix.de/flokati .
|
|
docker push dr.dnix.de/flokati
|
|
|