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