dist: trusty
language: go

addons:
  postgresql: "9.6"

go:
  - 1.9.x
  - 1.10.x
  - 1.11.x
  - 1.12.x
  - tip

go_import_path: github.com/go-pg/pg

matrix:
  allow_failures:
    - go: tip

before_install:
  - psql -U postgres -c "CREATE EXTENSION hstore"
  - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.16.0

install:
  - go get github.com/jinzhu/inflection
  - go get gopkg.in/check.v1
  - go get github.com/onsi/ginkgo
  - go get github.com/onsi/gomega
  - go get mellium.im/sasl

script:
  - golangci-lint run
  - travis_script_go {gobuild-args}

dist: xenial
language: go

addons:
  postgresql: "9.6"

go:
  - 1.9.x
  - 1.10.x
  - 1.11.x
  - 1.12.x
  - tip

go_import_path: github.com/go-pg/pg

matrix:
  allow_failures:
    - go: tip

before_install:
  - psql -U postgres -c "CREATE EXTENSION hstore"
  - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.16.0

install:
  - go get github.com/jinzhu/inflection
  - go get gopkg.in/check.v1
  - go get github.com/onsi/ginkgo
  - go get github.com/onsi/gomega
  - go get mellium.im/sasl

script:
  - golangci-lint run
  - make

Fix script and update distro
Fix script and update distro
