Skip to content

Commit 39f7fa8

Browse files
committed
[FIXUP] ... or do we?
This is the other option I guess... though, probably better that we just use `bundle install` on CI, as it is only 3 seconds to do that.
1 parent ada124c commit 39f7fa8

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Rakefile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,16 @@ end
1414
# Ruby Extension
1515
# ==========================================================
1616

17-
require 'rake/extensiontask'
18-
Rake::ExtensionTask.new('stackprof', GEMSPEC) do |ext|
19-
ext.lib_dir = 'lib/stackprof'
17+
begin
18+
require 'rake/extensiontask'
19+
Rake::ExtensionTask.new('stackprof', GEMSPEC) do |ext|
20+
ext.lib_dir = 'lib/stackprof'
21+
end
22+
task :build => :compile
23+
rescue LoadError => e
24+
# rake-compiler not installed. No problem if on CI.
25+
raise e unless ENV["TRAVIS"]
2026
end
21-
task :build => :compile
2227

2328
# ==========================================================
2429
# Testing

0 commit comments

Comments
 (0)