Merge pull request #26 from status-im/add-testing-circleci

Add tests to circle-ci
This commit is contained in:
Adrià Cidre 2018-05-30 09:21:48 +02:00 committed by GitHub
commit 9edb29b1aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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