Skip to content

Commit

Permalink
add possible fix for travis postgres 9.5.+
Browse files Browse the repository at this point in the history
  • Loading branch information
aacanakin committed Jul 8, 2016
1 parent c6adcae commit 6dade9d
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ language: go

sudo: required

env:
global:
- PGPORT=5433
- PGHOST=localhost
- DATABASE_URL=postgres://localhost:5433/qb_test

services:
- mysql
- postgresql

go:
- tip

Expand All @@ -22,19 +32,19 @@ script:

services:
- mysql
- postgresql

addons:
apt:
sources:
- precise-pgdg-9.5
packages:
- postgresql-9.5
- postgresql-contrib-9.5
postgresql: 9.5
apt:
sources:
- precise-pgdg-9.5
packages:
- postgresql-9.5
- postgresql-contrib-9.5
postgresql: 9.5

before_script:
- mysql -e 'create database IF NOT EXISTS qb_test;'
- sudo cp /etc/postgresql/9.4/main/pg_hba.conf /etc/postgresql/9.5/main/pg_hba.conf
- sudo /etc/init.d/postgresql restart
- psql -U postgres -c 'create database "qb_test";'
- psql -U postgres travis-db-test -c 'create extension "uuid-ossp";'
- psql -U postgres -c 'CREATE DATABASE qb_test;'

0 comments on commit 6dade9d

Please sign in to comment.