-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Rake tasks for running specs and running specs under the hudson CI
- Loading branch information
1 parent
3675e82
commit 50f576d
Showing
5 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ irb.rb | |
doc | ||
.yardoc | ||
test.rb | ||
spec/reports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
require 'rake' | ||
require 'rake/tasklib' | ||
require 'rubygems' | ||
require 'bundler' | ||
|
||
Bundler.setup(:default, :test) | ||
|
||
|
||
Dir["lib/tasks**/*.rake"].each do |file| | ||
puts file | ||
load(file) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
require 'rspec/core/rake_task' | ||
require 'ci/reporter/rake/rspec' | ||
|
||
RSpec::Core::RakeTask.new(:spec) do |t| | ||
t.pattern = './spec/**/*_spec.rb' | ||
end | ||
|
||
task :default => :spec | ||
task :ci => ['hudson:spec'] | ||
|
||
namespace :hudson do | ||
task :spec => ["ci:setup:rspec", 'rake:spec'] | ||
|
||
namespace :setup do | ||
|
||
task :pre_ci do | ||
require 'rubygems' | ||
gem 'ci_reporter' | ||
require 'ci/reporter/rake/rspec' | ||
end | ||
|
||
task :rspec => [:pre_ci, "ci:setup:rspec"] | ||
end | ||
end |