Permalink
Browse files

Revert "Simplify Travis before_install script since PostgreSQL 9.6 is…

… the new default"

This reverts commit 034c769.
  • Loading branch information...
burisu committed Aug 17, 2018
1 parent faf6b35 commit 4e3001b745d4041c5fe6bfc4c57021e2fff2cf43
Showing with 24 additions and 0 deletions.
  1. +24 −0 test/ci/before_install
View
@@ -5,4 +5,28 @@ sudo apt-get update -qq
echo ""
echo "--------------------------------------------------------------------------------"
echo "Install packages:"
# Force stop to prevent conflict with existing PostgreSQL
sudo /etc/init.d/postgresql stop
# Install needed packages including PostgreSQL
echo "Removing old Postgres versions."
sudo apt-get remove postgresql-client-9.1 postgresql-client-9.2 postgresql-client-9.3 postgresql-client-9.4 postgresql-client-9.5
echo""
echo "Dependencies install..."
echo""
sudo apt-get install -f -q postgresql-9.6-postgis-2.3 graphicsmagick tesseract-ocr tesseract-ocr-fra tesseract-ocr-eng tesseract-ocr-spa pdftk libreoffice poppler-utils poppler-data qt5-default libqt5webkit5-dev gstreamer1.0-x gstreamer1.0-tools gstreamer1.0-plugins-base libgeos-dev libproj-dev
gem uninstall bundler -a -x && gem install bundler -v 1.14.6
echo ""
echo "Dependencies installed!"
echo ""
# Configure PostgreSQL port to 5432
sudo sed -i -r 's/port\s*=\s*[0-9]+/port = 5432/g' /etc/postgresql/9.6/main/postgresql.conf
# Grant access to all
sudo sed -i '1i local all all trust' /etc/postgresql/9.6/main/pg_hba.conf
# Force PostgreSQL restart
sudo /etc/init.d/postgresql stop
sudo /etc/init.d/postgresql start 9.6

0 comments on commit 4e3001b

Please sign in to comment.