1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-01-08 10:45:04 +02:00
imgproxy/vendor/github.com/honeybadger-io/honeybadger-go/Makefile
2019-04-09 21:55:15 +06:00

37 lines
798 B
Makefile

all: test
deps:
# dependencies
go get github.com/pborman/uuid
go get github.com/shirou/gopsutil/load
go get golang.org/x/sys/unix
# testing libs
go get github.com/stretchr/testify/mock
go get github.com/stretchr/testify/assert
prepare: deps
# needed for `make fmt`
go get golang.org/x/tools/cmd/goimports
# linters
go get github.com/alecthomas/gometalinter
gometalinter --install
# needed for `make cover`
go get golang.org/x/tools/cmd/cover
@echo Now you should be ready to run "make"
test:
@go test -parallel 4 ./...
# goimports produces slightly different formatted code from go fmt
fmt:
find . -name "*.go" -exec goimports -w {} \;
lint:
gometalinter
cover:
go test -cover -coverprofile cover.out
go tool cover -html=cover.out
.PHONY: all prepare test fmt lint cover