summaryrefslogtreecommitdiff
path: root/build_etcd.sh
diff options
context:
space:
mode:
authorJose Plana <jplana@gmail.com>2013-12-01 12:15:29 +0100
committerJose Plana <jplana@gmail.com>2013-12-01 12:15:29 +0100
commitd2e8564d68c65884f2838e0b1ed1850b6a8567e6 (patch)
tree0785de00a864a5016c8c6ea53276247049afff32 /build_etcd.sh
parentda05a3cdc937fd84946d23485043730e25a37137 (diff)
Add explicit way to specify etcd version to test aginst in travis (now for real)
Diffstat (limited to 'build_etcd.sh')
-rwxr-xr-xbuild_etcd.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/build_etcd.sh b/build_etcd.sh
index 818bf4f..fc31991 100755
--- a/build_etcd.sh
+++ b/build_etcd.sh
@@ -1,7 +1,17 @@
#!/bin/sh
+
+if [ $# -gt 0 ]
+ then
+ ETCD_VERSION="$1";
+ else
+ ETCD_VERSION="master";
+fi
+
+echo "Using ETCD version $ETCD_VERSION"
+
git clone https://github.com/coreos/etcd.git
cd etcd
-git checkout v0.1.2
+git checkout $ETCD_VERSION
./build