From bab6aaf8905f2c8f96bab50896f25ec16d2a6892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20=22phoe=22=20Herda?= Date: Sat, 28 Mar 2020 13:42:18 +0100 Subject: [PATCH] Simplify and fix errors/warnings/notes on Travis configuration (#1112) Fixes #1111. We remove unnecessary .travis.sh code for removing old Postgres versions. --- .travis.sh | 13 ++----------- .travis.yml | 5 +++-- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/.travis.sh b/.travis.sh index 91f3642..836d826 100755 --- a/.travis.sh +++ b/.travis.sh @@ -44,17 +44,8 @@ pgdg_repositories() { postgresql_install() { if [ -z "${PGVERSION:-}" ]; then - PGVERSION="$( psql -d postgres -XAtc "select regexp_replace(current_setting('server_version'), '[.][0-9]+$', '')" )" - else - sudo service postgresql stop - xargs sudo apt-get -y --purge remove <<-packages - libpq-dev - libpq5 - postgresql - postgresql-client-common - postgresql-common - packages - sudo rm -rf /var/lib/postgresql + echo 'PGVERSION environment variable not set.'; + exit 1 fi xargs sudo apt-get -y install <<-packages diff --git a/.travis.yml b/.travis.yml index 9a76afa..174f521 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,6 @@ -language: common-lisp -sudo: required +language: shell +os: linux +dist: xenial env: matrix: