Skip to content

Commit

Permalink
Add travis-ci config
Browse files Browse the repository at this point in the history
unfortunately can't enable tests since they require a zookeeper server. This should be fixed
  • Loading branch information
samuel committed Oct 20, 2013
1 parent fae871c commit 4b124e0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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 ./...
2 changes: 0 additions & 2 deletions zk/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -544,7 +543,6 @@ func (c *Conn) recvLoop(conn net.Conn) error {
}
}
}
panic("not reached")
}

func (c *Conn) nextXid() int32 {
Expand Down

0 comments on commit 4b124e0

Please sign in to comment.