22 lines
No EOL
450 B
Makefile
22 lines
No EOL
450 B
Makefile
PACKAGES = $(shell go list ./... | grep -v /vendor/)
|
|
|
|
build:
|
|
glide install
|
|
glide update
|
|
go build
|
|
|
|
install:
|
|
go install
|
|
|
|
test:
|
|
go test -v $(shell go list ./... | grep -v /vendor/)
|
|
|
|
cover:
|
|
echo "mode: count" > coverage-all.out
|
|
$(foreach pkg,$(PACKAGES),\
|
|
go test -coverprofile=coverage.out -covermode=count $(pkg);\
|
|
tail -n +2 coverage.out >> coverage-all.out;)
|
|
go tool cover -html=coverage-all.out
|
|
|
|
fmt:
|
|
go fmt ./... 2>&1 | grep -v ^vendor
|