From 4b124e0fa832f6d0740ce5486218e7714b65caa9 Mon Sep 17 00:00:00 2001 From: Samuel Stauffer Date: Sat, 19 Oct 2013 21:32:03 -0700 Subject: [PATCH] Add travis-ci config unfortunately can't enable tests since they require a zookeeper server. This should be fixed --- .travis.yml | 17 +++++++++++++++++ zk/conn.go | 2 -- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..100fdead --- /dev/null +++ b/.travis.yml @@ -0,0 +1,17 @@ +language: go +go: + - 1.1 + - 1.1.1 + - tip + +branches: + only: + - master + +script: + - go build ./... + - go fmt ./... + - go get code.google.com/p/go.tools/cmd/vet + - go vet ./... +# - go test -i -race ./... +# - go test -v -race ./... diff --git a/zk/conn.go b/zk/conn.go index 4e228d0e..b63ee71f 100644 --- a/zk/conn.go +++ b/zk/conn.go @@ -443,7 +443,6 @@ func (c *Conn) sendLoop(conn net.Conn, closeChan <-chan bool) error { return nil } } - panic("not reached") } func (c *Conn) recvLoop(conn net.Conn) error { @@ -544,7 +543,6 @@ func (c *Conn) recvLoop(conn net.Conn) error { } } } - panic("not reached") } func (c *Conn) nextXid() int32 {