Skip to content

Instantly share code, notes, and snippets.

@mustafaergul
Created August 19, 2021 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mustafaergul/7912dc443c34be1557d8ae0a1d73d25c to your computer and use it in GitHub Desktop.
Save mustafaergul/7912dc443c34be1557d8ae0a1d73d25c to your computer and use it in GitHub Desktop.
Postgres13 on Focal
---
dist: focal
language: ruby
addons:
postgresql: '13'
apt:
packages:
- postgresql-13
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