Pave the way for Debian

Unfortunately Debian 8 has version 1.3.3 of golang, so it will be up to
someone else to test these things for now.
This commit is contained in:
James Shubin
2016-02-10 19:43:37 -05:00
parent 89182521de
commit 40476a66c2

View File

@@ -8,12 +8,20 @@ fi
if [ $travis -eq 0 ]; then
YUM=`which yum`
if [ -z $YUM ]; then
echo "The 'yum' utility can't be found."
APT=`which apt-get`
if [ -z "$YUM" -a -z "$APT" ]; then
echo "The package managers can't be found."
exit 1
fi
sudo yum install -y golang golang-googlecode-tools-stringer
sudo yum install -y hg # some go dependencies are stored in mercurial
if [ ! -z "$YUM" ]; then
# some go dependencies are stored in mercurial
sudo $YUM install -y golang golang-googlecode-tools-stringer hg
fi
if [ ! -z "$APT" ]; then
sudo $APT install -y golang mercurial
fi
fi
# build etcd