2018-05-29 15:53:22 +00:00
|
|
|
setup:
|
|
|
|
make lint-install
|
|
|
|
make dev-deps
|
|
|
|
make mock
|
|
|
|
|
2018-04-30 17:07:36 +00:00
|
|
|
lint-install:
|
|
|
|
go get -u github.com/alecthomas/gometalinter
|
|
|
|
gometalinter --install
|
|
|
|
|
|
|
|
lint:
|
|
|
|
@echo "lint"
|
|
|
|
@gometalinter ./...
|
2018-05-25 14:08:28 +00:00
|
|
|
|
|
|
|
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
|
2018-05-29 15:53:22 +00:00
|
|
|
go get -u github.com/ethereum/go-ethereum
|
2018-05-25 14:08:28 +00:00
|
|
|
|
|
|
|
mock:
|
|
|
|
mockgen -package=sdk -destination=sdk_mock.go -source=sdk.go
|