Skip to content
/ etcd Public
forked from etcd-io/etcd

Commit

Permalink
test: download latest v2.3 release binary
Browse files Browse the repository at this point in the history
  • Loading branch information
gyuho committed Aug 30, 2016
1 parent 48941ce commit 9bb0b51
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,16 @@ function release_pass {
# in case, we need to test against different version
UPGRADE_VER=$MANUAL_VER
fi
echo "Running release upgrade tests with" etcd $UPGRADE_VER
echo "Downloading latest release" etcd $UPGRADE_VER
curl -L https://github.com/coreos/etcd/releases/download/$UPGRADE_VER/etcd-$UPGRADE_VER-linux-amd64.tar.gz -o /tmp/etcd-$UPGRADE_VER-linux-amd64.tar.gz
tar xzvf /tmp/etcd-$UPGRADE_VER-linux-amd64.tar.gz -C /tmp/ --strip-components=1
mv /tmp/etcd ./bin/etcd-last-release

ETCD_V2_VER=$(git tag -l | grep v2.3 | tail -1)
echo "Downloading latest v2.3 release" etcd $ETCD_V2_VER
curl -L https://github.com/coreos/etcd/releases/download/$ETCD_V2_VER/etcd-$ETCD_V2_VER-linux-amd64.tar.gz -o /tmp/etcd-$ETCD_V2_VER-linux-amd64.tar.gz
tar xzvf /tmp/etcd-$ETCD_V2_VER-linux-amd64.tar.gz -C /tmp/ --strip-components=1
mv /tmp/etcd ./bin/etcd-last-release-v2.3
}

function fmt_pass {
Expand Down

0 comments on commit 9bb0b51

Please sign in to comment.