miniflux/vendor/github.com/lib/pq/.travis.yml

45 lines
998 B
YAML
Raw Normal View History

2017-11-20 06:10:04 +01:00
language: go
go:
2019-06-09 03:00:10 +02:00
- 1.11.x
2019-09-06 06:39:32 +02:00
- 1.12.x
2017-11-20 06:10:04 +01:00
- master
sudo: true
env:
global:
- PGUSER=postgres
- PQGOSSLTESTS=1
- PQSSLCERTTEST_PATH=$PWD/certs
- PGHOST=127.0.0.1
matrix:
- PGVERSION=10
- PGVERSION=9.6
- PGVERSION=9.5
- PGVERSION=9.4
before_install:
- ./.travis.sh postgresql_uninstall
- ./.travis.sh pgdg_repository
- ./.travis.sh postgresql_install
- ./.travis.sh postgresql_configure
- ./.travis.sh client_configure
- go get golang.org/x/tools/cmd/goimports
2019-09-06 06:39:32 +02:00
- go get golang.org/x/lint/golint
- GO111MODULE=on go get honnef.co/go/tools/cmd/staticcheck@2019.2.1
2017-11-20 06:10:04 +01:00
before_script:
- createdb pqgotest
- createuser -DRS pqgossltest
- createuser -DRS pqgosslcert
script:
- >
goimports -d -e $(find -name '*.go') | awk '{ print } END { exit NR == 0 ? 0 : 1 }'
- go vet ./...
2019-09-06 06:39:32 +02:00
- staticcheck -go 1.11 ./...
2018-07-07 06:18:14 +02:00
- golint ./...
2017-11-20 06:10:04 +01:00
- PQTEST_BINARY_PARAMETERS=no go test -race -v ./...
- PQTEST_BINARY_PARAMETERS=yes go test -race -v ./...