Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add .travis.yml for builds of 1.1, 1.0 and 0.8 on 1.9.3 and 1.8.7.

  • Loading branch information...
commit 21c6630bb622215c26269e47d60d9e7b93afce08 1 parent 9a18699
@jarib jarib authored
Showing with 17 additions and 1 deletion.
  1. +14 −0 .travis.yml
  2. +3 −1 Rakefile
View
14 .travis.yml
@@ -0,0 +1,14 @@
+language: ruby
+rvm:
+ - 1.9.3
+ - 1.8.7
+env:
+ - CASSANDRA_VERSION=1.1
+ - CASSANDRA_VERSION=1.0
+ - CASSANDRA_VERSION=0.8
+ # these two requires Java 6, see https://github.com/travis-ci/travis-ci/issues/686
+ # - CASSANDRA_VERSION=0.7
+ # - CASSANDRA_VERSION=0.6
+before_script:
+ - java -version
+ - bundle exec rake 'cassandra:start[daemonize]'
View
4 Rakefile
@@ -118,7 +118,9 @@ end
desc "Check Java version"
task :java do
- unless `java -version 2>&1`.split("\n").first =~ /java version "1.6/ #"
+ is_java16 = `java -version 2>&1`.split("\n").first =~ /java version "1.6/
+
+ if ['0.6', '0.7'].include?(CASSANDRA_VERSION) && !java16
puts "You need to configure your environment for Java 1.6."
puts "If you're on OS X, just export the following environment variables:"
puts ' JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home"'
Please sign in to comment.
Something went wrong with that request. Please try again.