language: go
go:
  - 1.6
install:
  - go get -u github.com/golang/dep
before_script:
  - go vet +l
script: go test -v ./...

language: go
go:
  - 1.6
  - 1.9


install:
  - go get -v .

before_script:
  - go vet
script:
  - if [ "$TRAVIS_GO_VERSION" = "1.6" ]; then go list ./... | grep -v vendor | xargs go test -race -v -timeout 60s; fi
  - if [ "$TRAVIS_GO_VERSION" != "1.6" ]; then echo $TRAVIS_GO_VERSION; go test -race -v -timeout 60s ./...; fi

Support only 1.6 and 1.9
Support only 1.6 and 1.9

* Intermediate versions (Go 1.7 and Go 1.8) can still be used,
but they will not be tested
