code4lib / ruby-oai

a Ruby library for building OAI-PMH clients and servers
MIT License
62 stars 42 forks source link

Have travis test under more modern/supported MRIs #63

Closed jrochkind closed 4 years ago

jrochkind commented 4 years ago

Try to include a recent JRuby as well with travis default jruby.

Ref #61, #62

jrochkind commented 4 years ago

Not passing on JRuby with error on travis:

2019-08-21T16:59:22.570Z [main] WARN FilenoUtil : Native subprocess control requires open access to sun.nio.ch
Pass '--add-opens java.base/sun.nio.ch=org.jruby.dist' or '=org.jruby.core' to enable.
2019-08-21T16:59:27.805Z [main] WARN FilenoUtil : Native subprocess control requires open access to sun.nio.ch
Pass '--add-opens java.base/sun.nio.ch=org.jruby.dist' or '=org.jruby.core' to enable.
2019-08-21T16:59:32.286Z [main] WARN FilenoUtil : Native subprocess control requires open access to sun.nio.ch
Pass '--add-opens java.base/sun.nio.ch=org.jruby.dist' or '=org.jruby.core' to enable.
/home/travis/.rvm/gems/jruby-9.2.8.0/gems/power_assert-1.1.5/lib/power_assert.rb:8: warning: tracing (e.g. set_trace_func) will not capture all events without --debug flag
/home/travis/.rvm/gems/jruby-9.2.8.0/gems/power_assert-1.1.5/lib/power_assert.rb:8: warning: tracing (e.g. set_trace_func) will not capture all events without --debug flag
LoadError: Could not load 'active_record/connection_adapters/sqlite3_adapter'. Make sure that the adapter in config/database.yml is valid. If you use an adapter other than 'mysql', 'mysql2', 'postgresql' or 'sqlite3' add the necessary adapter gem to the Gemfile.

This may just be a test setup issue (travis, Rails, or otherwise).

But since this has not been passing on travis for some time (and tests weren't actually runnable at all for some time), I'm going to move jruby into travis allowed_failures. Not sure when the last time anyone ran tests on JRuby was.

JRuby support can be added back later perhaps. For now, I want to able to go forward with automated CI, without having to stop and try to get jruby (which I don't use currently) working.