language: go
sudo: false
go:
  - tip
  - 1.9.x
  - 1.8.x
  - 1.7.x

install:
  - go get -t ./...

before_script:
  - $(exit $(go fmt ./... | wc -l))
  - wget https://github.com/nats-io/nats-streaming-server/releases/download/v0.5.0/nats-streaming-server-v0.5.0-linux-amd64.zip
  - unzip nats-streaming-server-v0.5.0-linux-amd64.zip
  - cd nats-streaming-server-v0.5.0-linux-amd64 && ./nats-streaming-server &
  - sleep 1

script:
  - go test -v -race ./...

language: go
sudo: false
go:
  - tip
  - 1.9.x
  - 1.8.x
  - 1.7.x

install:
  - go get -t ./...

before_script:
  - $(exit $(go fmt ./... | wc -l))
  - wget https://github.com/nats-io/nats-streaming-server/releases/download/v0.5.0/nats-streaming-server-v0.5.0-linux-amd64.zip
  - unzip nats-streaming-server-v0.5.0-linux-amd64.zip
  - cd nats-streaming-server-v0.5.0-linux-amd64 && ./nats-streaming-server &
  - sleep 1

script:
  - go test -v -race .

Test only top package in Travis tests
Test only top package in Travis tests

Signed-off-by: Byron Ruth <e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98@devel.io>
