Skip to content

Commit

Permalink
Use bionic beaver in travis testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vik Fearing committed Aug 5, 2019
1 parent 92473a6 commit 6237b1d
Showing 1 changed file with 20 additions and 24 deletions.
44 changes: 20 additions & 24 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,4 @@
addons:
apt:
sources:
- sourceline: "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main 12"
key_url: "https://www.postgresql.org/media/keys/ACCC4CF8.asc"
- sourceline: "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg-testing main 12"
key_url: "https://www.postgresql.org/media/keys/ACCC4CF8.asc"

before_install:
- sudo /etc/init.d/postgresql stop
- sudo apt-get -y --purge remove postgresql libpq-dev libpq5 postgresql-client-common postgresql-common
- sudo rm -rf /var/lib/postgresql
- sudo apt-get update -qq
- sudo apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::="--force-confnew" ${PGREPO:+-t "$PGREPO"} install postgresql-${PG:?} postgresql-server-dev-${PG:?} postgresql-contrib-${PG:?}

env:
matrix:
- PG=9.5
- PG=9.6
- PG=10
- PG=11
- PG=12 PGREPO=xenial-pgdg-testing

dist: xenial
dist: bionic

sudo: required

Expand All @@ -30,6 +7,25 @@ language: c
compiler:
- gcc

env:
matrix:
- PG=12 COMPONENT=12
- PG=11
- PG=10
- PG=9.6
- PG=9.5

before_install:
- sudo /etc/init.d/postgresql stop
- sudo apt-get -y --purge remove postgresql libpq-dev libpq5 postgresql-client-common postgresql-common
- sudo rm -rf /var/lib/postgresql
- |
if [ "$COMPONENT" ]; then
sudo sed -i -e "s/main/main $COMPONENT/" /etc/apt/sources.list.d/pgdg*.list
fi
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::="--force-confnew" ${PGREPO:+-t "$PGREPO"} install postgresql-${PG:?} postgresql-server-dev-${PG:?} postgresql-contrib-${PG:?}

before_script:
- sudo -u postgres createuser -s "$USER"

Expand Down

0 comments on commit 6237b1d

Please sign in to comment.