Last active
January 17, 2022 19:32
-
-
Save mustafa-travisci/529d77d29c07e2b37f0f19042ea1ef38 to your computer and use it in GitHub Desktop.
PostgreSQL12 on Focal
This file contains hidden or 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: '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