-
Notifications
You must be signed in to change notification settings - Fork 23
/
.travis.yml
39 lines (33 loc) · 1.48 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
36
37
38
39
language: bash
sudo: required
services:
- docker
env:
- CASSANDRA_VER=2.0
- CASSANDRA_VER=2.1
- CASSANDRA_VER=2.2
- CASSANDRA_VER=3.0
- CASSANDRA_VER=3.7
before_install:
- docker pull cassandra:${CASSANDRA_VER}
- docker run --name c01n01 -d cassandra:${CASSANDRA_VER}
- docker run --name c01n02 -e CASSANDRA_SEEDS="$( docker inspect --format='{{ .NetworkSettings.IPAddress }}' c01n01 )" -d cassandra:${CASSANDRA_VER}
- docker run --name c02n01 -d cassandra:${CASSANDRA_VER}
- docker ps -a
install:
- docker cp ./getSnapshot c01n01:/root/
- docker cp ./putSnapshot c01n01:/root/
- docker cp ./putSnapshot c02n01:/root/
- docker cp ./test/testData_SimpleStrategy.cql c01n01:/root/
- docker cp ./test/testData_NetworkTopologyStrategy.cql c01n01:/root/
- sleep 60
- docker exec c01n01 bash -c "nodetool info"
- docker exec c01n01 bash -c "cqlsh -f /root/testData_SimpleStrategy.cql"
- docker exec c01n01 bash -c "cqlsh -f /root/testData_NetworkTopologyStrategy.cql"
script:
- docker exec c01n01 bash -c "cqlsh <<< 'DESCRIBE KEYSPACES'"
- docker exec c01n01 bash -c "cqlsh <<< 'SELECT count(*) FROM test_keyspace01_topology.playlists;'"
- docker exec c01n01 bash -c "/root/getSnapshot -k test_keyspace01_topology"
- docker exec c01n01 bash -c "/root/putSnapshot -f *.tar.gz -k test_keyspace02_topology"
- docker exec c01n01 bash -c "cqlsh <<< 'DESCRIBE KEYSPACES'"
- docker exec c01n01 bash -c "cqlsh <<< 'SELECT count(*) FROM test_keyspace02_topology.playlists;'"