Skip to content

Commit

Permalink
Merge pull request #11 from wallyqs/travis-build
Browse files Browse the repository at this point in the history
Add travis build and go fmt fixes
  • Loading branch information
derekcollison committed Aug 20, 2015
2 parents 7e0b040 + a9181dd commit 8d71887
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
17 changes: 17 additions & 0 deletions .travis.yml
@@ -0,0 +1,17 @@
language: go
go:
- 1.4

install:
- DST=~/gopath/src/github.com/nats-io
- mkdir -p "$DST"
- git clone --depth=1 --quiet https://github.com/nats-io/gnatsd.git "$DST"/gnatsd
- go get golang.org/x/tools/cmd/vet

script:
- go get -d -v ./...
- go build -v ./...
- go fmt ./...
- go vet ./...
- go test -i -race ./...
- GOMAXPROCS=1 go test -v -race ./...
4 changes: 1 addition & 3 deletions readme.md
@@ -1,8 +1,6 @@
# nats-top

[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)][license]

[license]: https://github.com/nats-io/nats-top/blob/master/LICENSE
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/nats-io/nats-top/blob/master/LICENSE)[![Build Status](https://travis-ci.org/nats-io/nats-top.svg?branch=master)](http://travis-ci.org/nats-io/nats-top)

`nats-top` is a `top`-like tool for monitoring gnatsd servers.

Expand Down
2 changes: 1 addition & 1 deletion test/toputils_test.go → test/test.go
Expand Up @@ -58,7 +58,7 @@ func TestFetchingStatz(t *testing.T) {
go func() {
conn, err := net.Dial("tcp", fmt.Sprintf("127.0.0.1:%d", GNATSD_PORT))
if err != nil {
t.Fatalf("could not create subcription to NATS: ", err)
t.Fatalf("could not create subcription to NATS: %s", err)
}
fmt.Fprintf(conn, "SUB hello.world 90\r\n")
time.Sleep(5 * time.Second)
Expand Down

0 comments on commit 8d71887

Please sign in to comment.