Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc fixes to get JRuby working on Travis #387

Merged
merged 6 commits into from
May 3, 2016
Merged

Conversation

e2
Copy link
Contributor

@e2 e2 commented May 3, 2016

Workarounds/fixes:

  • update gemspec dependencies (for newer Bundler resoler and RubyDep JRuby
    support)
  • get JRuby to fail with ENOTDIR like MRI does (because JRuby reports ENOENT,
    while Listen treats both differently)
  • avoid unkillable thread problem on JRuby (which until now cause every Travis build to hang forever)
  • activate JRuby-9.0.5.0 on Travis (since once it works, it can be officially considered as "supported" by Listen)

Not fixed yet:

e2 added 4 commits May 3, 2016 03:09
You can't kill a thread that is doing a sysread, so we just send a kill
to those threads, and then we ignore them.

The allows at least the Travis JRuby tests to run without hanging.
# https://github.com/jruby/jruby/issues/3840
exists = ::File.exist?(dir)
directory = ::File.directory?(dir)
return Dir.entries(dir) unless (exists && !directory)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use parentheses around the condition of an unless.

@coveralls
Copy link

coveralls commented May 3, 2016

Coverage Status

Coverage decreased (-0.2%) to 97.647% when pulling 0285e25 on fixing_jruby_support into 1684919 on master.

@e2 e2 self-assigned this May 3, 2016
@coveralls
Copy link

coveralls commented May 3, 2016

Coverage Status

Coverage decreased (-0.2%) to 97.653% when pulling b09a3a7 on fixing_jruby_support into 1684919 on master.

@e2 e2 merged commit acf3d35 into master May 3, 2016
@e2 e2 deleted the fixing_jruby_support branch May 3, 2016 04:19
@e2 e2 added JRuby and removed work in progress labels May 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants