Skip to content

Commit

Permalink
fix travis script to download 2.2.x release
Browse files Browse the repository at this point in the history
  • Loading branch information
John Sanda committed Aug 27, 2015
1 parent 307975d commit 729fde5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.install.cassandra.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ set -xe
cd "${HOME}"

wget -O datastax-releases "http://downloads.datastax.com/community/?C=M;O=D"
LATEST_MICRO=`cat datastax-releases | grep -m 1 -o -E "dsc-cassandra-2\.1\.[0-9]+-bin\.tar.gz" | head -1 | cut -d '.' -f3 | cut -d '-' -f1`
LATEST_MICRO=`cat datastax-releases | grep -m 1 -o -E "dsc-cassandra-2\.2\.[0-9]+-bin\.tar.gz" | head -1 | cut -d '.'
-f3 | cut -d '-' -f1`

CASSANDRA_VERSION="2.2.${LATEST_MICRO}"
CASSANDRA_BINARY="dsc-cassandra-${CASSANDRA_VERSION}-bin.tar.gz"
Expand Down

0 comments on commit 729fde5

Please sign in to comment.