Skip to content

Instantly share code, notes, and snippets.

@mustafa-travisci
Created April 5, 2021 08:43
Show Gist options
  • Save mustafa-travisci/660c87993d8c69338b3153c8d35e0101 to your computer and use it in GitHub Desktop.
Save mustafa-travisci/660c87993d8c69338b3153c8d35e0101 to your computer and use it in GitHub Desktop.
PostgreSQL12 + Node10.x.x on Xenial
---
language: node_js
node_js:
- "10.23.0"
addons:
postgresql: "12"
apt:
packages:
- postgresql-12
- postgresql-client-12
env:
global:
- PGPORT=5433
- PGUSER=travis
before_install:
- sudo sed -i -e "/local.*peer/s/postgres/all/" -e "s/peer\|md5/trust/g" /etc/postgresql/*/main/pg_hba.conf
- postgres --version
before_script:
- psql -Utravis -p5433 -c 'create database travis_ci_test;'
- psql -p5433 -c "SELECT version();"
script: echo "Your build script here please."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment