Skip to content

Commit

Permalink
Merge build config from 0.7 and fix issue #5
Browse files Browse the repository at this point in the history
  • Loading branch information
zhicwu committed Mar 16, 2017
1 parent d2aa31d commit 11f28c8
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 5 deletions.
28 changes: 27 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,39 @@ jdk:
- oraclejdk7
- oraclejdk8

env:
- CASSANDRA_VERSION=2.1
- CASSANDRA_VERSION=2.2
- CASSANDRA_VERSION=3.0
- CASSANDRA_VERSION=3.1
- CASSANDRA_VERSION=3.2
- CASSANDRA_VERSION=3.3
- CASSANDRA_VERSION=3.4
- CASSANDRA_VERSION=3.7
- CASSANDRA_VERSION=3.9
- CASSANDRA_VERSION=3.10

cache:
directories:
- $HOME/.m2
- $HOME/.m2

services:
- docker

before_install:
- docker info
- docker pull cassandra:$CASSANDRA_VERSION
- docker run -d --name cassi -v $HOME/wait_cassandra.sh:/wait_cassandra.sh -p 9042:9042 cassandra:$CASSANDRA_VERSION
- docker ps -a

script:
- docker exec -it cassi sh /wait_cassandra.sh
- mvn -Dgroups=base,server test

after_script:
- docker stop cassi || true
- docker rm cassi || true

notifications:
email:
- [email protected]
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cassandra-jdbc-driver
Copyright 2015-2016, Zhichun Wu.
Copyright 2015-2017, Zhichun Wu.

This project includes software developed by Zhichun Wu.
https://github.com/zhicwu
Expand Down
2 changes: 1 addition & 1 deletion misc/NOTICE.template
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cassandra-jdbc-driver
Copyright 2015-2016, Zhichun Wu.
Copyright 2015-2017, Zhichun Wu.

This project includes software developed by Zhichun Wu.
https://github.com/zhicwu
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Types;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
Expand Down Expand Up @@ -109,7 +110,7 @@ private Object[] populateColumnMetaData(KeyspaceMetadata ks,
null, // SCOPE_CATALOG
null, // SCOPE_SCHEMA
null, // SCOPE_TABLE
null, // SOURCE_DATA_TYPE
Types.NULL, // SOURCE_DATA_TYPE
"NO", // IS_AUTOINCREMENT
"NO" // IS_GENERATEDCOLUMN
};
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ driver :

# logging configuration for tinylog(http://www.tinylog.org/configuration)
logger :
level : DEBUG
level : INFO
stacktrace : -1
format : "{date:yyyy-MM-dd HH:mm:ss} [{thread}] {class_name}.{method}({line}) {level}: {message}"
15 changes: 15 additions & 0 deletions wait_cassandra.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh
USERNAME=cassandra
PASSWORD=cassandra
KEYSPACE=system_traces
TESTCQL="desc keyspaces"

echo "Wait until Cassandra is up and ready to use..."

while ! cqlsh -u "$USERNAME" -p "$PASSWORD" -k "$KEYSPACE" -e "$TESTCQL" > /dev/null; do
sleep 3

echo " - Checking status..."
done

echo "Great! It's ready now!"

0 comments on commit 11f28c8

Please sign in to comment.