Try to fix travis

pull/224/head
Kris Wehner 2017-01-05 09:49:27 -08:00
parent 9d60e77aa4
commit 8f5875b7b2
2 changed files with 8 additions and 0 deletions

View File

@ -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:

View File

@ -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: