99f22ac8e4
Original implementation: 2d9d8dc52a by
Joshua Barone <joshua.barone@gmail.com>.
Also changed DSN tests to use "dbname" as key rather than "database" as
that is what the PostgreSQL documentation specifies. "database" still
actually works but it should not be encouraged as it is non-standard.
49 lines
1.4 KiB
YAML
49 lines
1.4 KiB
YAML
language: go
|
|
|
|
go:
|
|
- 1.x
|
|
- tip
|
|
|
|
git:
|
|
depth: 1
|
|
|
|
# Derived from https://github.com/lib/pq/blob/master/.travis.yml
|
|
before_install:
|
|
- ./travis/before_install.bash
|
|
|
|
env:
|
|
global:
|
|
- GO111MODULE=on
|
|
- GOPROXY=https://proxy.golang.org
|
|
- GOFLAGS=-mod=readonly
|
|
- PGX_TEST_CONN_STRING=postgres://pgx_md5:secret@127.0.0.1/pgx_test
|
|
- PGX_TEST_UNIX_SOCKET_CONN_STRING="host=/var/run/postgresql dbname=pgx_test"
|
|
- PGX_TEST_TCP_CONN_STRING=postgres://pgx_md5:secret@127.0.0.1/pgx_test
|
|
- PGX_TEST_TLS_CONN_STRING=postgres://pgx_md5:secret@127.0.0.1/pgx_test?sslmode=require
|
|
- PGX_TEST_MD5_PASSWORD_CONN_STRING=postgres://pgx_md5:secret@127.0.0.1/pgx_test
|
|
- PGX_TEST_PLAIN_PASSWORD_CONN_STRING=postgres://pgx_pw:secret@127.0.0.1/pgx_test
|
|
matrix:
|
|
- CRATEVERSION=2.1 PGX_TEST_CRATEDB_CONN_STRING="host=127.0.0.1 port=6543 user=pgx dbname=pgx_test"
|
|
- PGVERSION=10 PGX_TEST_REPLICATION_CONN_STRING="host=127.0.0.1 port=6543 user=pgx_replication password=secret dbname=pgx_test"
|
|
- PGVERSION=9.6 PGX_TEST_REPLICATION_CONN_STRING="host=127.0.0.1 port=6543 user=pgx_replication password=secret dbname=pgx_test"
|
|
- PGVERSION=9.5
|
|
- PGVERSION=9.4
|
|
- PGVERSION=9.3
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.cache/go-build
|
|
- $HOME/gopath/pkg/mod
|
|
|
|
before_script:
|
|
- ./travis/before_script.bash
|
|
|
|
install: go mod download
|
|
|
|
script:
|
|
- ./travis/script.bash
|
|
|
|
matrix:
|
|
allow_failures:
|
|
- go: tip
|