From fd58742f5a9fc8f11966727e28d9ebdbfd0adb34 Mon Sep 17 00:00:00 2001 From: Sebastian Delgado Date: Tue, 29 May 2018 10:53:22 -0500 Subject: [PATCH] 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 --- .circleci/config.yml | 5 +++-- Makefile | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b7666a5..c6eb35b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 \ No newline at end of file diff --git a/Makefile b/Makefile index f76786d..a6b1d38 100644 --- a/Makefile +++ b/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