Set up travis tests to run with postgres 10

This commit is contained in:
Daniele Varrazzo 2017-03-29 03:02:04 +01:00
parent 285675f836
commit b9b8e60bda
2 changed files with 8 additions and 0 deletions

View File

@ -4,6 +4,7 @@ dist: trusty
sudo: required
env:
- PGVER=10
- PGVER=9.6
- PGVER=9.5
- PGVER=9.4

View File

@ -38,9 +38,16 @@ fi
# Go somewhere else or sudo will fail
cd /
# Already started because of installing posgresql-$PGVER
# sudo -u postgres "$PGBIN/pg_ctl" -w -l /dev/null -D "$CONFDIR" start
sudo -u postgres mkdir -p /var/lib/postgresql/testts
sudo -u postgres "$PGBIN/psql" \
-c "create tablespace testts location '/var/lib/postgresql/testts'"
if [ $PGVER -eq "10" ]; then
sudo -u postgres "$PGBIN/psql" -c "create user travis superuser"
fi
# Go back to the build dir
cd -