forked from datastax/python-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (32 loc) · 1.33 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
29
30
31
32
33
34
35
language: python
python: 2.7
env:
- TOX_ENV=py26 CASS_VER=21
- TOX_ENV=py27 CASS_VER=12
- TOX_ENV=py27 CASS_VER=20
- TOX_ENV=py27 CASS_VER=21
- TOX_ENV=pypy CASS_VER=21
- TOX_ENV=py33 CASS_VER=21
- TOX_ENV=py34 CASS_VER=21
before_install:
- sudo apt-get update -y
- sudo apt-get install -y build-essential python-dev
- sudo apt-get install -y libev4 libev-dev
- sudo echo "deb http://www.apache.org/dist/cassandra/debian ${CASS_VER}x main" | sudo tee -a /etc/apt/sources.list
- sudo echo "deb-src http://www.apache.org/dist/cassandra/debian ${CASS_VER}x main" | sudo tee -a /etc/apt/sources.list
- sudo rm -rf ~/.gnupg
- 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 gpg --keyserver pgp.mit.edu --recv-keys 0353B12C
- sudo gpg --export --armor 0353B12C | sudo apt-key add -
- sudo apt-get update
- sudo apt-get -o Dpkg::Options::="--force-confnew" install -y cassandra
- sudo rm -rf /var/lib/cassandra/*
- sudo sh -c "echo 'JVM_OPTS=\"\${JVM_OPTS} -Djava.net.preferIPv4Stack=false\"' >> /etc/cassandra/cassandra-env.sh"
- sudo service cassandra start
install:
- pip install tox
script:
- tox -e $TOX_ENV