Skip to content

Commit

Permalink
Travis: Remove old postgres before installing version 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Sep 25, 2020
1 parent 1ed75f4 commit ff702d9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,14 @@ script:
addons:
# test with last version that still supports OIDs
postgresql: "11"
apt:
packages:
- postgresql-11
- postgresql-client-11

services:
- postgresql

before_install:
- sudo apt-get remove -y postgresql\*
- sudo apt-get install -y postgresql-11 postgresql-client-11
- sudo service postgresql restart 11

before_script:
- psql -U postgres -c 'create database unittest'

0 comments on commit ff702d9

Please sign in to comment.