mirror of
https://github.com/thoughtbot/factory_bot_rails.git
synced 2022-11-09 11:49:18 -05:00
9de5e2b765
* Skip Spring version 2.1.1 Changes introduced in spring 2.1.1 (https://github.com/rails/spring/pull/621) are breaking some tests. That change was reverted in https://github.com/rails/spring/pull/629, but hasn't been released yet. Until #629 is released, this PR skips Spring version 2.1.1. * Bump to latest standard to match CI We are using the latest standard on CI. This bumps the version in the dev Gemfile to match, and fixes one violation. Co-authored-by: Daniel J. Colson <daniel.colson@hey.com>
28 lines
730 B
Ruby
28 lines
730 B
Ruby
require "aruba/cucumber"
|
|
|
|
PROJECT_ROOT =
|
|
File.expand_path(File.join(File.dirname(__FILE__), "..", "..")).freeze
|
|
|
|
Aruba.configure do |config|
|
|
config.exit_timeout = Integer ENV.fetch("ARUBA_TIMEOUT", 120)
|
|
end
|
|
|
|
if RUBY_PLATFORM == "java"
|
|
Aruba.configure do |config|
|
|
config.before_cmd do
|
|
# disable JIT since these processes are so short lived
|
|
set_env("JRUBY_OPTS", "-X-C #{ENV["JRUBY_OPTS"]}")
|
|
|
|
java_options = ENV["JAVA_OPTS"]
|
|
|
|
if 1.size == 4 # 4 for 32 bit java, 8 for 64 bit java.
|
|
set_env("JAVA_OPTS", "-d32 #{java_options}")
|
|
else
|
|
set_env(
|
|
"JAVA_OPTS",
|
|
"-XX:+TieredCompilation -XX:TieredStopAtLevel=1 #{java_options}"
|
|
)
|
|
end
|
|
end
|
|
end
|
|
end
|