Skip to content

Instantly share code, notes, and snippets.

@mustafa-travisci
Last active January 17, 2022 19:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mustafa-travisci/529d77d29c07e2b37f0f19042ea1ef38 to your computer and use it in GitHub Desktop.
Save mustafa-travisci/529d77d29c07e2b37f0f19042ea1ef38 to your computer and use it in GitHub Desktop.
PostgreSQL12 on Focal
---
dist: focal
language: ruby
addons:
postgresql: '12'
apt:
packages:
- postgresql-12
env:
global:
- PGUSER=postgres
- PGPORT=5432
- PGHOST=localhost
before_install:
- 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
- sleep 1
- postgres --version
script:
- psql -c 'create database travis_ci_test;' -U postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment