mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-04 10:31:02 +02:00
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:
parent
5e7de5d68d
commit
bab6aaf890
13
.travis.sh
13
.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
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
language: common-lisp
|
||||
sudo: required
|
||||
language: shell
|
||||
os: linux
|
||||
dist: xenial
|
||||
|
||||
env:
|
||||
matrix:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user