Skip to content

Commit

Permalink
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions lib/ruby/truffle/jruby+truffle/lib/truffle/config.rb
Original file line number Diff line number Diff line change
@@ -234,36 +234,37 @@ def compute_physical_processor_count


class Truffle::Runner::CIEnvironment
def rails_ci(exclude)
repository_name 'rails'
def rails_ci
declare_options debug: ['--[no-]debug', 'Run tests with remote debugging enabled.',
STORE_NEW_VALUE, false],
exclude: ['--[no-]exclude', 'Exclude known failing tests',
STORE_NEW_VALUE, true]

repository_name 'rails'

use_only_https_git_paths!

has_to_succeed setup
set_result run([%w[--require-pattern test/**/*_test.rb],
(exclude ? %w[-r excluded-tests] : []),
%w[-- -I test -e nil]].flatten(1))
set_result run([*%w[--require-pattern test/**/*_test.rb],
*(%w[-r excluded-tests] if option(:exclude)),
*(%w[--debug] if option(:debug)),
*%w[-- -I test -e nil]])
end
end

Truffle::Runner.add_ci_definition :actionpack do
declare_options exclude: ['--[no-]exclude',
'Exclude known failing tests',
STORE_NEW_VALUE,
true]
subdir 'actionpack'
rails_ci option(:exclude)
rails_ci
end

Truffle::Runner.add_ci_definition :activemodel do
subdir 'activemodel'
rails_ci false
rails_ci
end

Truffle::Runner.add_ci_definition :activesupport do
subdir 'activesupport'
rails_ci false
rails_ci
end

Truffle::Runner.add_ci_definition :algebrick do

0 comments on commit 6ce2fa7

Please sign in to comment.