mirror of
https://github.com/status-im/status-go-sdk.git
synced 2026-08-27 11:31:09 +00:00
Addresses #19. Unify setup step under make setup. Currently failing lint, but passing `make test` when you reverse the order of the steps. Lint errors will be addressed by #27
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
|