language: go

go:
  - 1.4
  - 1.5
  - tip

script:
  - '[[ $(go version) =~ "1.4" ]] || go get -u github.com/golang/lint/golint'
  - test -z "$(gofmt -l .)"
  - '[[ $(go version) =~ "1.4" ]] || test -z "$(golint ./...)"'
  - go test -v ./...

language: go

go:
  - 1.4
  - 1.5
  - 1.6
  - tip

script:
  - '[[ $(go version) =~ "1.4" ]] || go get -u github.com/golang/lint/golint'
  - test -z "$(gofmt -l .)"
  - '[[ $(go version) =~ "1.4" ]] || test -z "$(golint ./...)"'
  - go test -v ./...

Test on Go v1.6 in CI
Test on Go v1.6 in CI

Now that Go has released 1.7, I want to make sure pgmgr maintains compatibility with 1.6. Possibly we could remove 1.4, but it's not that old and I can't find a good source on version usage.