forked from whatyouhide/xandra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (29 loc) · 1.03 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
language: elixir
dist: trusty
sudo: required
otp_release: 19.2
elixir:
- 1.3.4
- 1.4.0
env:
matrix:
- CASSANDRA_VERSION=2.2.8 AUTHENTICATION=true
- CASSANDRA_VERSION=2.2.8
- CASSANDRA_VERSION=3.9 AUTHENTICATION=true
- CASSANDRA_VERSION=3.9
matrix:
include:
otp_release: 18.3
elixir: 1.4.0
env: CASSANDRA_VERSION=3.9
# These steps are taken from: http://cassandra.apache.org/doc/latest/getting_started/installing.html#installation-from-binary-tarball-files.
before_install:
- java -version
- wget https://archive.apache.org/dist/cassandra/$CASSANDRA_VERSION/apache-cassandra-$CASSANDRA_VERSION-bin.tar.gz
- tar -xzf apache-cassandra-$CASSANDRA_VERSION-bin.tar.gz
- |-
if [ $AUTHENTICATION = true ]; then
sed -i -e "s/\(authenticator: \)AllowAllAuthenticator/\1PasswordAuthenticator/" apache-cassandra-$CASSANDRA_VERSION/conf/cassandra.yaml
fi
- sh apache-cassandra-$CASSANDRA_VERSION/bin/cassandra
- for try in {1..12}; do (nodetool version > /dev/null 2>&1 && break) || sleep 5; done