Skip to content

Commit

Permalink
Travis: Fix port of postgres-11 installation
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Sep 25, 2020
1 parent ff702d9 commit 54de901
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ matrix:
- name: Code quality tests
env: TOXENV=flake8,docs
python: 3.8
- name: Unit tests with Python 3.9
env: TOXENV=py39
python: 3.9
# - name: Unit tests with Python 3.9
# env: TOXENV=py39
# python: 3.9
- name: Unit tests with Python 3.8
env: TOXENV=py38
python: 3.8
Expand Down Expand Up @@ -41,14 +41,17 @@ 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:
- sudo service postgresql stop
- 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
- psql -U postgres -c 'create database unittest'

0 comments on commit 54de901

Please sign in to comment.