Browse Source

add circle.yml. disable js test

pull/1780/head
Ethan Buchman 8 years ago
parent
commit
49a67aee8a
4 changed files with 27 additions and 3 deletions
  1. +2
    -0
      README.md
  2. +24
    -0
      circle.yml
  3. +0
    -2
      client/grpc_client.go
  4. +1
    -1
      tests/test_counter/test.sh

+ 2
- 0
README.md View File

@ -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.


+ 24
- 0
circle.yml View File

@ -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"

+ 0
- 2
client/grpc_client.go View File

@ -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)
}
}()


+ 1
- 1
tests/test_counter/test.sh View File

@ -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

Loading…
Cancel
Save