Skip to content

Commit

Permalink
CI: Fix installing Postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
hasegeli committed May 15, 2021
1 parent d184ced commit 3f97b50
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ before_install:
- sudo apt-get -qq update

install:
# upgrade postgresql-common for new apt.postgresql.org.sh
- sudo apt-get install -y postgresql-common
- sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -p -v $PGVERSION -i
- sudo apt-get install curl ca-certificates gnupg
- curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
- sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
- sudo apt-get update
- sudo apt-get install postgresql-$PGVERSION
- pg_lsclusters
- dpkg -l postgresql\* | cat
- printenv | sort
Expand Down

0 comments on commit 3f97b50

Please sign in to comment.