Skip to content

Commit 42075f8

Browse files
committed
Avoid RuboCop on RBX; it likes to SIGSEV in Travis
1 parent 6bf7c34 commit 42075f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Rakefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ load 'tasks/compile.rake'
88
load 'tasks/generate.rake'
99
load 'tasks/benchmarks.rake'
1010

11-
# TODO: remove when we end support for < 1.9.3
12-
begin
11+
# TODO: remove engine check when rubinius stops crashing on RuboCop
12+
# TODO: remove defined?(Encoding) when we end support for < 1.9.3
13+
if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'ruby' && defined?(Encoding)
1314
require 'rubocop/rake_task'
1415
RuboCop::RakeTask.new
1516
task :default => [:spec, :rubocop]
16-
17-
rescue LoadError
17+
else
1818
warn 'RuboCop is not available'
1919
task :default => :spec
2020
end

0 commit comments

Comments
 (0)