travisci-diff-postgres

Created Diff never expires
2 removals
21 lines
2 additions
21 lines
dist: trusty
dist: xenial # default
sudo: required
sudo: required


addons:
addons:
postgresql: "10"
postgresql: "10"
apt:
apt:
packages:
packages:
- postgresql-10
- postgresql-10
- postgresql-client-10
- postgresql-client-10
env:
env:
global:
global:
- PGPORT=5433
- PGPORT=5432


services:
services:
- postgresql
- postgresql


before_install:
before_install:
- echo "==> Configuring postgres..."
- echo "==> Configuring postgres..."
- sudo sed -i -e '/local.*peer/s/postgres/all/' -e 's/peer\|md5/trust/g' /etc/postgresql/*/main/pg_hba.conf
- sudo sed -i -e '/local.*peer/s/postgres/all/' -e 's/peer\|md5/trust/g' /etc/postgresql/*/main/pg_hba.conf
- sudo service postgresql restart
- sudo service postgresql restart
- while ! nc -z localhost $PGPORT; do sleep 0.1; done
- while ! nc -z localhost $PGPORT; do sleep 0.1; done