1
0
Fork 0
mirror of https://github.com/rspec/rspec-metagem.git synced 2022-11-09 12:09:29 -05:00
rspec--rspec-metagem/Rakefile
Chad Humphries 2b785f9a98 The default rake task now runs the default rake task for each project
This enables rcov, and cucumber features to run in projects that have
them.
2009-09-07 20:35:04 -04:00

60 lines
1.7 KiB
Ruby

require 'rubygems'
require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "rspec-meta"
gem.summary = "pulls in the other rspec gems"
gem.email = "dchelimsky@gmail.com;chad.humphries@gmail.com"
gem.homepage = "http://github.com/rspec/meta"
gem.authors = ["David Chelimsky", "Chad Humphries"]
gem.add_dependency "rspec-core", "0.0.0"
gem.add_dependency "rspec-expectations", "0.0.0"
gem.add_dependency "rspec-mocks", "0.0.0"
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
task :spec do
system <<-COMMANDS
cd ../core &&
echo '================================'
echo 'Running spec/core suite . . .'
echo '================================'
rake &&
cd ../mocks &&
echo '================================'
echo 'Running spec/mocks suite . . .'
echo '================================'
rake &&
cd ../expectations &&
echo '================================'
echo 'Running spec/expectations suite . . .'
echo '================================'
rake
COMMANDS
end
task :default => :spec
namespace :git do
[:status, :pull, :push, :reset, :diff].each do |key|
command = key == :reset ? "reset --hard" : key.to_s
desc "git #{command} on all the repos"
task key do
["../meta","../core","../expectations", "../mocks"].each do |repo|
puts
puts "=" * 50
puts "running git #{command} on #{repo}:"
puts "=" * 50
puts `cd #{repo} && git #{command}`
end
end
end
task :st => :status
end