Skip to content

Commit 36eab57

Browse files
authored
Merge pull request #63 from code4lib/travis_green
Have travis test under more modern/supported MRIs
2 parents 6ffd7c4 + 0379692 commit 36eab57

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
language: ruby
22
rvm:
3-
- 1.8.7
4-
- 1.9.3
53
- 2.2.1
6-
- jruby-18mode
7-
- jruby-19mode
4+
- 2.5.5
5+
- 2.6.3
6+
matrix:
7+
allow_failures:
8+
- rvm: jruby-9.2.8.0
89
script: bundle exec rake test

Gemfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@ group :test do
1313
gem 'redcarpet', :platform => :ruby # For fast, Github-like Markdown
1414
gem 'kramdown', :platform => :jruby # For Markdown without a C compiler
1515
gem 'test-unit'
16-
gem 'sqlite3', :platform => [:ruby, :mswin]
16+
# This version of sqlite3 required for activerecord 4.2, not more recent.
17+
# When bumping AR, may have to/want to adjust this to more recent versions.
18+
gem 'sqlite3', "~> 1.3.0", :platform => [:ruby, :mswin]
1719
end

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
ruby-oai
22
========
33

4+
[![Build Status](https://travis-ci.org/code4lib/ruby-oai.svg?branch=master)](https://travis-ci.org/code4lib/ruby-oai)
5+
6+
[![Gem Version](https://badge.fury.io/rb/kithe.svg)](https://badge.fury.io/rb/oai)
7+
48
ruby-oai is a Open Archives Protocol for Metadata Harvesting (OAI-PMH)
59
library for Ruby. [OAI-PMH](http://openarchives.org) is a somewhat
610
archaic protocol for sharing metadata between digital library repositories.

test/activerecord_provider/config/connection.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33

44
# Configure AR connection
55
#ActiveRecord::Base.logger = Logger.new(STDOUT)
6+
7+
if RUBY_PLATFORM == "java"
8+
require 'jdbc/sqlite3'
9+
Jdbc::SQLite3.load_driver
10+
end
11+
612
ActiveRecord::Migration.verbose = false
713
ActiveRecord::Base.establish_connection :adapter => "sqlite3",
814
:database => ":memory:"
9-
ActiveRecord::Migrator.up File.join(File.dirname(__FILE__), '..', 'database')
15+
ActiveRecord::Migrator.up File.join(File.dirname(__FILE__), '..', 'database')

0 commit comments

Comments
 (0)