From 49a67aee8a7984a68eabe2c45ff6eb0ff51e31f9 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Wed, 6 Jul 2016 17:01:20 -0400 Subject: [PATCH] add circle.yml. disable js test --- README.md | 2 ++ circle.yml | 24 ++++++++++++++++++++++++ client/grpc_client.go | 2 -- tests/test_counter/test.sh | 2 +- 4 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 circle.yml diff --git a/README.md b/README.md index 6c8420839..617e581ba 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Tendermint Socket Protocol (TMSP) +[![CircleCI](https://circleci.com/gh/tendermint/tmsp.svg?style=svg)](https://circleci.com/gh/tendermint/tmsp) + Blockchains are a system for creating shared multi-master application state. **TMSP** is a socket protocol enabling a blockchain consensus engine, running in one process, to manage a blockchain application state, running in another. diff --git a/circle.yml b/circle.yml new file mode 100644 index 000000000..548dcc3e9 --- /dev/null +++ b/circle.yml @@ -0,0 +1,24 @@ +machine: + environment: + GOPATH: /home/ubuntu/.go_workspace + REPO: $GOPATH/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME + hosts: + circlehost: 127.0.0.1 + localhost: 127.0.0.1 + +checkout: + post: + - rm -rf $REPO + - mkdir -p $HOME/.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME + - mv $HOME/$CIRCLE_PROJECT_REPONAME $REPO + # - git submodule sync + # - git submodule update --init # use submodules + +dependencies: + override: + - "cd $REPO && go get -t ./..." + +test: + override: + - "cd $REPO && go test ./..." + - "cd $REPO && bash tests/test_counter/test.sh" diff --git a/client/grpc_client.go b/client/grpc_client.go index 5937b5c57..813be658a 100644 --- a/client/grpc_client.go +++ b/client/grpc_client.go @@ -206,13 +206,11 @@ func (cli *grpcClient) finishAsyncCall(req *types.Request, res *types.Response) go func() { // Notify reqRes listener if set if cb := reqres.GetCallback(); cb != nil { - fmt.Println("CALLING reqres CB") cb(res) } // Notify client listener if set if cli.resCb != nil { - fmt.Println("CALLING client CB") cli.resCb(reqres.Request, res) } }() diff --git a/tests/test_counter/test.sh b/tests/test_counter/test.sh index c1a0f58bb..7acd5d146 100755 --- a/tests/test_counter/test.sh +++ b/tests/test_counter/test.sh @@ -10,4 +10,4 @@ COUNTER_APP="counter" go run test_counter.go COUNTER_APP="counter -tmsp=grpc" go run test_counter.go -tmsp=grpc # test nodejs counter -COUNTER_APP="node $GOPATH/src/github.com/tendermint/js-tmsp/example/app.js" go run test_counter.go +#COUNTER_APP="node $GOPATH/src/github.com/tendermint/js-tmsp/example/app.js" go run test_counter.go