Hi. I’m trying to install Postgres 11 with Postgis using the instructions from https://docs.travis-ci.com/user/database-setup/#using-a-different-postgresql-version.
Relevant snippet from my .travis.yml file:
addons:
postgresql: 11
apt:
packages:
- postgresql-11-postgis-2.5
- postgresql-client-11
services:
- postgresql
env:
global:
- PGPORT=5433
- PGUSER=travis
But I keep getting this error:
$ psql -U postgres -c "CREATE EXTENSION postgis"
psql: FATAL: Peer authentication failed for user "postgres"
The command "psql -U postgres -c "CREATE EXTENSION postgis"" failed and exited with 2 during .
Any help is much appreciated.
Thanks