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:
parent
bd786b4184
commit
fd58742f5a
|
@ -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
|
6
Makefile
6
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue