forked from cqlengine/cqlengine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (23 loc) · 1.04 KB
/
.travis.yml
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
language: python
env:
- CASSANDRA_VERSION=12
- CASSANDRA_VERSION=20
python:
- "2.7"
- "3.4"
before_install:
- sudo echo "deb http://www.apache.org/dist/cassandra/debian ${CASSANDRA_VERSION}x main" | sudo tee -a /etc/apt/sources.list
- sudo echo "deb-src http://www.apache.org/dist/cassandra/debian ${CASSANDRA_VERSION}x main" | sudo tee -a /etc/apt/sources.list
- sudo gpg --keyserver pgp.mit.edu --recv-keys F758CE318D77295D
- sudo gpg --export --armor F758CE318D77295D | sudo apt-key add -
- sudo gpg --keyserver pgp.mit.edu --recv-keys 2B5C1B00
- sudo gpg --export --armor 2B5C1B00 | sudo apt-key add -
- sudo apt-get update
- sudo apt-get -o Dpkg::Options::="--force-confnew" install -y cassandra
- sudo sh -c "echo 'JVM_OPTS=\"\${JVM_OPTS} -Djava.net.preferIPv4Stack=false\"' >> /usr/local/cassandra/conf/cassandra-env.sh"
- sudo service cassandra start
- if [ "$C_VERSION" -le "20" ]; then export CASSANDRA_PROTOCOL_VERSION=1; fi
install:
- "pip install -r requirements.txt --use-mirrors"
script:
- "bin/test.py --no-skip"