mirror of https://github.com/jackc/pgx.git
Try to fix travis
parent
9d60e77aa4
commit
8f5875b7b2
|
@ -19,6 +19,11 @@ before_install:
|
|||
- echo "host all pgx_md5 127.0.0.1/32 md5" >> /etc/postgresql/$PGVERSION/main/pg_hba.conf
|
||||
- echo "host all pgx_pw 127.0.0.1/32 password" >> /etc/postgresql/$PGVERSION/main/pg_hba.conf
|
||||
- echo "hostssl all pgx_ssl 127.0.0.1/32 md5" >> /etc/postgresql/$PGVERSION/main/pg_hba.conf
|
||||
- echo "host replication pgx_ssl 127.0.0.1/32 md5" >> /etc/postgresql/$PGVERSION/main/pg_hba.conf
|
||||
- sudo chmod 777 /etc/postgresql/$PGVERSION/main/postgresql.conf
|
||||
- echo "wal_level='logical'" >> /etc/postgresql/$PGVERSION/main/postgresql.conf
|
||||
- echo "max_wal_senders=5" >> /etc/postgresql/$PGVERSION/main/postgresql.conf
|
||||
- echo "max_replication_slots=5" >> /etc/postgresql/$PGVERSION/main/postgresql.conf
|
||||
- sudo /etc/init.d/postgresql restart
|
||||
|
||||
env:
|
||||
|
@ -38,6 +43,7 @@ before_script:
|
|||
- psql -U postgres -c "create user pgx_ssl SUPERUSER PASSWORD 'secret'"
|
||||
- psql -U postgres -c "create user pgx_md5 SUPERUSER PASSWORD 'secret'"
|
||||
- psql -U postgres -c "create user pgx_pw SUPERUSER PASSWORD 'secret'"
|
||||
- psql -U postgres -c "create user pgx_replication with replication password 'secret'"
|
||||
- psql -U postgres -c "create user \" tricky, ' } \"\" \\ test user \" superuser password 'secret'"
|
||||
|
||||
install:
|
||||
|
|
|
@ -95,12 +95,14 @@ If you are developing on Unix with domain socket connections:
|
|||
local pgx_test pgx_none trust
|
||||
local pgx_test pgx_pw password
|
||||
local pgx_test pgx_md5 md5
|
||||
local replication pgx_replication 127.0.0.1/32 md5
|
||||
|
||||
If you are developing on Windows with TCP connections:
|
||||
|
||||
host pgx_test pgx_none 127.0.0.1/32 trust
|
||||
host pgx_test pgx_pw 127.0.0.1/32 password
|
||||
host pgx_test pgx_md5 127.0.0.1/32 md5
|
||||
host replication pgx_replication 127.0.0.1/32 md5
|
||||
|
||||
For replication testing, add the following to your postgresql.conf:
|
||||
|
||||
|
|
Loading…
Reference in New Issue