Created
August 19, 2021 10:58
-
-
Save mustafaergul/7912dc443c34be1557d8ae0a1d73d25c to your computer and use it in GitHub Desktop.
Postgres13 on Focal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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