Permalink
Browse files

tweaks for jruby/rbx builds

  • Loading branch information...
1 parent f86ac78 commit d98d434f43ff14f6df84046f57afc4f0e4bc985a @JonRowe JonRowe committed Aug 6, 2013
Showing with 20 additions and 0 deletions.
  1. +20 −0 features/support/env.rb
View
@@ -1 +1,21 @@
require 'aruba/cucumber'
+
+Before do
+ if RUBY_PLATFORM =~ /java/
+ @aruba_timeout_seconds = 30
+ else
+ @aruba_timeout_seconds = 10
+ end
+end
+
+Aruba.configure do |config|
+ config.before_cmd do |cmd|
+ set_env('JRUBY_OPTS', "-X-C #{ENV['JRUBY_OPTS']}") # disable JIT since these processes are so short lived
+ end
+end if RUBY_PLATFORM == 'java'
+
+Aruba.configure do |config|
+ config.before_cmd do |cmd|
+ set_env('RBXOPT', "-Xint=true #{ENV['RBXOPT']}") # disable JIT since these processes are so short lived
+ end
+end if defined?(Rubinius)

0 comments on commit d98d434

Please sign in to comment.