Merge pull request #26 from status-im/add-testing-circleci
Add tests to circle-ci
This commit is contained in:
commit
9edb29b1aa
|
@ -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