forked from thurstonsand/scala-cass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis_script.sh
29 lines (22 loc) · 1.18 KB
/
.travis_script.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env sh
mkdir lib
wget https://github.com/Ichoran/thyme/raw/master/Thyme.jar -O lib/Thyme.jar
sudo rm /etc/init.d/cassandra /etc/security/limits.d/cassandra.conf
cassVersion=""
if java -version 2>&1 | egrep "java version \"1.7" > /dev/null; then
cassVersion="2.2.7"
else
cassVersion="3.0.8"
fi
#echo "deb http://www.apache.org/dist/cassandra/debian $cassVersion main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list
#echo "deb-src http://www.apache.org/dist/cassandra/debian $cassVersion main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list
#gpg --keyserver hkp://pgp.mit.edu:80 --recv-keys F758CE318D77295D
#gpg --export --armor F758CE318D77295D | sudo apt-key add -
#gpg --keyserver hkp://pgp.mit.edu:80 --recv-keys 2B5C1B00
#gpg --export --armor 2B5C1B00 | sudo apt-key add -
#gpg --keyserver hkp://pgp.mit.edu:80 --recv-keys 0353B12C
#gpg --export --armor 0353B12C | sudo apt-key add -
#sudo apt-get update -qq
#sudo apt-get install cassandra
wget "http://www.us.apache.org/dist/cassandra/$cassVersion/apache-cassandra-$cassVersion-bin.tar.gz" && tar -xvzf "apache-cassandra-$cassVersion-bin.tar.gz"
export PATH="apache-cassandra-$cassVersion/bin:$PATH"