27 lines
520 B
Makefile
27 lines
520 B
Makefile
setup:
|
|
make lint-install
|
|
make dev-deps
|
|
make mock
|
|
|
|
lint-install:
|
|
go get -u github.com/alecthomas/gometalinter
|
|
gometalinter --install
|
|
|
|
lint:
|
|
@echo "lint"
|
|
@gometalinter ./...
|
|
|
|
UNIT_TEST_PACKAGES := $(shell go list ./...)
|
|
|
|
test:
|
|
go test -coverpkg= $(UNIT_TEST_PACKAGES)
|
|
|
|
dev-deps:
|
|
go get -u github.com/stretchr/testify
|
|
go get -u github.com/golang/mock/gomock
|
|
go get -u github.com/golang/mock/mockgen
|
|
go get -u github.com/ethereum/go-ethereum
|
|
|
|
mock:
|
|
mockgen -package=sdk -destination=sdk_mock.go -source=sdk.go
|