Permalink
Browse files

Rake tasks for running rvm builds & tests

  • Loading branch information...
1 parent 8eac214 commit e8c060ef8b39991f5554a51e639586b84785d745 @jakedouglas jakedouglas committed Mar 26, 2010
Showing with 22 additions and 0 deletions.
  1. +22 −0 Rakefile
View
@@ -7,3 +7,25 @@ task :spec do
sh "ruby spec/memprof_spec.rb"
end
task :default => :spec
+
+task :ci_spec do
+ Dir.chdir('ext') do
+ sh "make clean" rescue nil
+ sh "memprof_ruby extconf.rb"
+ sh "make"
+ end
+ sh "memprof_ruby spec/memprof_spec.rb"
+end
+
+task :x86_64_shared do
+ sh "rvm install 1.8.7 --force -C --enable-shared"
+ sh "rvm 1.8.7 --symlink memprof"
+ Rake::Task[:ci_spec].invoke
+end
+
+task :x86_64_static do
+ sh "rvm install 1.8.7 --force -C --disable-shared"
+ sh "rvm 1.8.7 --symlink memprof"
+ Rake::Task[:ci_spec].invoke
+end
+

0 comments on commit e8c060e

Please sign in to comment.