Travis CI: Update setup

Update PGDG repo setup, update to xenial, use inline scripts instead
of external gists.
This commit is contained in:
Peter Eisentraut 2019-04-23 18:58:28 +02:00
parent 437ae00801
commit e5d25a8fe9
1 changed files with 17 additions and 8 deletions

View File

@ -1,10 +1,13 @@
dist: xenial
language: c language: c
before_install: addons:
- wget https://gist.github.com/petere/5893799/raw/apt.postgresql.org.sh apt:
- wget https://gist.github.com/petere/6023944/raw/pg-travis-test.sh sources:
- sudo sh ./apt.postgresql.org.sh - sourceline: 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main'
install: key_url: 'https://www.postgresql.org/media/keys/ACCC4CF8.asc'
- sudo apt-get install -qq liburiparser-dev update: true
packages:
- liburiparser-dev
env: env:
- PGVERSION=9.1 - PGVERSION=9.1
- PGVERSION=9.2 - PGVERSION=9.2
@ -14,5 +17,11 @@ env:
- PGVERSION=9.6 - PGVERSION=9.6
- PGVERSION=10 - PGVERSION=10
- PGVERSION=11 - PGVERSION=11
script: script: |
- bash ./pg-travis-test.sh set -e
PATH=/usr/lib/postgresql/$PGVERSION/bin:$PATH
sudo apt-get install postgresql-$PGVERSION postgresql-server-dev-$PGVERSION
sudo pg_createcluster --start $PGVERSION test -p 55435 -- -A trust
make all
sudo make install
PGPORT=55435 make installcheck PGUSER=postgres