From a98b0cf35df7ea855a13207b8cb3cb3bc8a300dd Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sat, 9 Jan 2016 15:13:12 -0800 Subject: [PATCH] travis: Workaround postgres 9.1 conflict issues on trusty. We ran into a bug with the Travis CI infrastructure where it postgres 9.1 is installed on the system, and so when we'd do an apt upgrade with a new version of 9.1, the 9.1 daemon would end up getting started and conflict with the 9.3 daemon we were trying to run. --- tools/travis/production-helper | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/travis/production-helper b/tools/travis/production-helper index 9eeb329fd0..c691531f70 100755 --- a/tools/travis/production-helper +++ b/tools/travis/production-helper @@ -10,6 +10,14 @@ tar -xf zulip-server-travis.tar.gz mv zulip-server-travis /root/zulip export APT_OPTIONS="-o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold" + +# Make sure we've done an apt upgrade and then stop postgres to +# workaround problems with Travis CI having multiple postgres versions +# installed on the system and 9.1 starting up and conflicting with +# running 9.3 later. +apt-get upgrade -y $APT_OPTIONS +service postgresql stop +# Install Zulip /root/zulip/scripts/setup/install cat >>/etc/zulip/settings.py <