Skip to content

Commit

Permalink
chore(pg12): Update travisCI to PG 12
Browse files Browse the repository at this point in the history
  • Loading branch information
MonkeyDo committed May 18, 2020
1 parent 51c1a8f commit 676d0ae
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,36 @@ notifications:
template:
- "Project %{repository_name} build #%{build_number}: %{result} in %{elapsed_time}: %{build_url}"

sudo: false

cache:
directories:
- node_modules

env:
- CXX=g++-4.8
services:
- postgresql

addons:
postgresql: "12"
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- postgresql-12
- postgresql-client-12
- g++-4.8
postgresql: "9.5"

env:
global:
- CXX=g++-4.8

before_install:
- sudo service postgresql stop
- printf "local all all trust\nhost all all 127.0.0.1 trust" > pg_hba.conf
- sudo chown postgres pg_hba.conf
- sudo mv pg_hba.conf /etc/postgresql/12/main
- sed -e 's/^port.*/port = 5432/' /etc/postgresql/12/main/postgresql.conf > postgresql.conf
- sudo chown postgres postgresql.conf
- sudo mv postgresql.conf /etc/postgresql/12/main
- sudo service postgresql start 12

before_script:
- psql -c 'CREATE DATABASE bookbrainz_test;' -U postgres
- psql -c 'CREATE EXTENSION "uuid-ossp"; CREATE SCHEMA musicbrainz; CREATE SCHEMA bookbrainz;' -d bookbrainz_test -U postgres
Expand Down

0 comments on commit 676d0ae

Please sign in to comment.