diff options
author | Jose Plana <jplana@gmail.com> | 2013-12-01 12:15:29 +0100 |
---|---|---|
committer | Jose Plana <jplana@gmail.com> | 2013-12-01 12:15:29 +0100 |
commit | d2e8564d68c65884f2838e0b1ed1850b6a8567e6 (patch) | |
tree | 0785de00a864a5016c8c6ea53276247049afff32 /build_etcd.sh | |
parent | da05a3cdc937fd84946d23485043730e25a37137 (diff) |
Add explicit way to specify etcd version to test aginst in travis (now for real)
Diffstat (limited to 'build_etcd.sh')
-rwxr-xr-x | build_etcd.sh | 12 |
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 |