language: go

go:
    - 1.7

install:
    - go get
    - go get -u github.com/nats-io/gnatsd
    - go get -u github.com/stretchr/testify
    - go get golang.org/x/tools/cmd/cover
    - go get github.com/mattn/goveralls

script:
    - go test -v -covermode=count -coverprofile=coverage.out
    - $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken 9GPJSocOIVZBeNNIRQNLJxNU2lJfKiAtY

language: go

go:
    - 1.5
    - 1.6
    - 1.7

install:
    - go get
    - go get -u github.com/nats-io/gnatsd
    - go get -u github.com/stretchr/testify
    - go get golang.org/x/tools/cmd/cover
    - go get github.com/mattn/goveralls

script:
    - go test -v -covermode=count -coverprofile=coverage.out
    - $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken 9GPJSocOIVZBeNNIRQNLJxNU2lJfKiAtY

Test with go 1.5 and 1.6
[ci] Test with go 1.5 and 1.6

Those are the versions nats-io/nats is tested with
We keep testing on version 1.7
