Simplify and fix errors/warnings/notes on Travis configuration (#1112)

Fixes #1111.

We remove unnecessary .travis.sh code for removing old Postgres versions.
This commit is contained in:
Michał "phoe" Herda 2020-03-28 13:42:18 +01:00 committed by GitHub
parent 5e7de5d68d
commit bab6aaf890
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 13 deletions

View File

@ -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

View File

@ -1,5 +1,6 @@
language: common-lisp
sudo: required
language: shell
os: linux
dist: xenial
env:
matrix: