travis: Do an apt-get update before the apt upgrade.

This should save several minutes off the Travis CI `production`
suite's runtime, since previously we were doing the full apt upgrade
process twice, resulting in things like multiple expensive rebuilds of
the initramfs.
This commit is contained in:
Tim Abbott 2016-05-02 14:34:49 -07:00
parent 27f12b2de3
commit 79327a61ae
1 changed files with 1 additions and 0 deletions

View File

@ -11,6 +11,7 @@ mv zulip-server-travis /root/zulip
# Do an apt upgrade to start with an up-to-date machine
export APT_OPTIONS="-o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold"
apt-get update
apt-get upgrade -y $APT_OPTIONS
# Install Zulip
/root/zulip/scripts/setup/install