add circle.yml. disable js test

This commit is contained in:
Ethan Buchman 2016-07-06 17:01:20 -04:00
parent 732634112b
commit 49a67aee8a
4 changed files with 27 additions and 3 deletions

View File

@ -1,5 +1,7 @@
# Tendermint Socket Protocol (TMSP) # 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. 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, **TMSP** is a socket protocol enabling a blockchain consensus engine, running in one process,
to manage a blockchain application state, running in another. to manage a blockchain application state, running in another.

24
circle.yml Normal file
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"

View File

@ -206,13 +206,11 @@ func (cli *grpcClient) finishAsyncCall(req *types.Request, res *types.Response)
go func() { go func() {
// Notify reqRes listener if set // Notify reqRes listener if set
if cb := reqres.GetCallback(); cb != nil { if cb := reqres.GetCallback(); cb != nil {
fmt.Println("CALLING reqres CB")
cb(res) cb(res)
} }
// Notify client listener if set // Notify client listener if set
if cli.resCb != nil { if cli.resCb != nil {
fmt.Println("CALLING client CB")
cli.resCb(reqres.Request, res) cli.resCb(reqres.Request, res)
} }
}() }()

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 COUNTER_APP="counter -tmsp=grpc" go run test_counter.go -tmsp=grpc
# test nodejs counter # 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