Skip to content

Commit

Permalink
Use CI env as trigger for verbose specs, as in MRI tests.
Browse files Browse the repository at this point in the history
headius committed Apr 16, 2018

Verified

This commit was signed with the committer’s verified signature.
headius Charles Oliver Nutter
1 parent 0b88309 commit 500f9c0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rakelib/rubyspec.rake
Original file line number Diff line number Diff line change
@@ -13,10 +13,16 @@ namespace :spec do
desc "Run rubyspecs expected to pass in precompiled mode"
task :'ruby:aot' => :ci_precompiled

if ENV['CI']
MSPEC_FORMAT = "s"
else
MSPEC_FORMAT = "d"
end

desc "Run fast specs that do not spawn many subprocesses"
task :'ruby:fast' do
mspec :compile_mode => "OFF",
:format => $stdout.tty? ? 'd' : 's',
:format => MSPEC_FORMAT,
:spec_target => ":fast",
:jruby_opts => "-I. --dev"
end

0 comments on commit 500f9c0

Please sign in to comment.