Commit 202011417d9cd16f989ff970305cf32d00456ac0
Make rake compile behave better, make the default task a full recompile and spec run.
Coda Hale committed on 5/8/2008, 12:26:39 AMParent: 1696fcde2d7720cd5da20e4c16a39e9455f7d16d
Files changed
Rakefile | changed |
Rakefile | ||
---|---|---|
@@ -25,9 +25,9 @@ | ||
25 | 25 | CLOBBER.include( |
26 | 26 | "doc/coverage" |
27 | 27 | ) |
28 | 28 | |
29 | -task :default => [:spec] | |
29 | +task :default => [:compile, :spec] | |
30 | 30 | |
31 | 31 | desc "Run all specs" |
32 | 32 | Spec::Rake::SpecTask.new do |t| |
33 | 33 | t.spec_files = FileList['spec/**/*_spec.rb'] |
@@ -88,8 +88,9 @@ | ||
88 | 88 | task :compile => [:clean] do |
89 | 89 | Dir.chdir('./ext') |
90 | 90 | system "ruby extconf.rb" |
91 | 91 | system "make" |
92 | + Dir.chdir('..') | |
92 | 93 | end |
93 | 94 | |
94 | 95 | desc "Run a set of benchmarks on the compiled extension." |
95 | 96 | task :benchmark do |
Built with git-ssb-web