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
This commit is contained in:
Sebastian Delgado 2018-05-29 10:53:22 -05:00
parent bd786b4184
commit fd58742f5a
No known key found for this signature in database
GPG Key ID: F6A589DA7A8AA59C
2 changed files with 9 additions and 2 deletions

View File

@ -17,8 +17,9 @@ jobs:
#### expecting it in the form of
#### /go/src/github.com/circleci/go-tool
#### /go/src/bitbucket.org/circleci/go-tool
working_directory: /go/src/github.com/{{ORG_NAME}}/{{REPO_NAME}}
working_directory: /go/src/github.com/status-im/status-go-sdk
steps:
- checkout
- run: make lint-install
- run: make setup
- run: make lint
- run: make test

View File

@ -1,3 +1,8 @@
setup:
make lint-install
make dev-deps
make mock
lint-install:
go get -u github.com/alecthomas/gometalinter
gometalinter --install
@ -15,6 +20,7 @@ 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