Skip to content

Commit

Permalink
Travis: Give up trying to use PostgreSQL 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Sep 25, 2020
1 parent 31994a9 commit f82824d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,15 @@ script:
- tox -e $TOXENV

addons:
# test with last version that still supports OIDs
postgresql: "11"
# better test with latest PostgreSQL version (13)
# or last version that still supports OIDs (11)
# or ideally both, but difficult to configure in Travis
# because of conflicts with the default PostgreSQL
postgresql: "10"

services:
- postgresql

before_script:
- sudo service postgresql stop
- sudo apt-get remove -y postgresql\*
- sudo apt-get install postgresql-11 postgresql-client-11
- sudo -u postgres sed -i "s/port = 54[0-9][0-9]/port = 5432/" /etc/postgresql/11/main/postgresql.conf
- sudo service postgresql start 11
- sudo -u postgres psql -c 'create database unittest'

0 comments on commit f82824d

Please sign in to comment.