Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

50 lines (37 sloc) 1.152 kb
# require 'rubygems'
# gem 'rdoc', '~> 2.5'
# require 'rdoc/task'
# RDoc::Task.new do |rd|
# rd.title = 'ZK Documentation'
# rd.rdoc_files.include("lib/**/*.rb")
# end
gemset_name = 'zk'
%w[1.8.7 1.9.2 1.9.3 jruby].each do |rvm_ruby|
ruby_with_gemset = "#{rvm_ruby}@#{gemset_name}"
create_gemset_task_name = "mb:#{rvm_ruby}:create_gemset"
bundle_task_name = "mb:#{rvm_ruby}:bundle_install"
rspec_task_name = "mb:#{rvm_ruby}:run_rspec"
task create_gemset_task_name do
sh "rvm #{rvm_ruby} do rvm gemset create #{gemset_name}"
end
task bundle_task_name => create_gemset_task_name do
rm_f 'Gemfile.lock'
sh "rvm #{ruby_with_gemset} do bundle install"
end
task rspec_task_name => bundle_task_name do
sh "rvm #{ruby_with_gemset} do bundle exec rspec spec --fail-fast"
end
task "mb:test_all" => rspec_task_name
end
namespace :spec do
task :define do
require 'rubygems'
require 'bundler/setup'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new('spec:runner')
end
task :run => :define do
Rake::Task['spec:runner'].invoke
end
end
task :default => 'spec:run'
Jump to Line
Something went wrong with that request. Please try again.