Files
Sebastian Delgado fd58742f5a Add testing step to circle-ci
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
2018-05-29 10:53:22 -05:00

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