nuke the hydra stuff

This commit is contained in:
John Bintz 2011-08-07 00:49:12 -04:00
parent 30ce01c017
commit 96c69f3def
3 changed files with 3 additions and 46 deletions

View File

@ -12,5 +12,3 @@ gem 'guard-coffeescript'
gem 'growl' gem 'growl'
gem 'rake', '0.8.7' gem 'rake', '0.8.7'
gem 'mocha', '0.9.12' gem 'mocha', '0.9.12'
gem 'hydra', :git => 'git://github.com/johnbintz/hydra.git'
gem 'facter'

View File

@ -3,28 +3,6 @@ include Rake::DSL if defined?(Rake::DSL)
require 'bundler' require 'bundler'
Bundler::GemHelper.install_tasks Bundler::GemHelper.install_tasks
begin
require 'hydra'
require 'hydra/tasks'
require 'facter'
Hydra::TestTask.new('hydra:spec') do |t|
t.add_files 'spec/**/*_spec.rb'
end
rescue LoadError
warn "$! - hydra not loaded"
end
HYDRA_LOG = 'hydra-runner.log'
task 'hydra:before' do
rm HYDRA_LOG if File.file?(HYDRA_LOG)
end
task('hydra:spec').enhance(%w{hydra:before}) do
puts File.read(HYDRA_LOG) if File.file?(HYDRA_LOG)
end
require 'rspec/core/rake_task' require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) RSpec::Core::RakeTask.new(:spec)
@ -38,23 +16,9 @@ Jasmine::Headless::Task.new
namespace :spec do namespace :spec do
desc "Run on three Rubies" desc "Run on three Rubies"
task :platforms do task :platforms do
current = %x{rvm-prompt v} system %{rvm 1.8.7,1.9.2,ree ruby bundle}
system %{rvm 1.8.7,1.9.2,ree ruby bundle exec rake spec}
fail = false raise StandardError.new if $?.exitstatus != 0
%w{1.8.7 1.9.2 ree}.each do |version|
puts "Switching to #{version}"
Bundler.with_clean_env do
system %{bash -c 'source ~/.rvm/scripts/rvm ; rvm #{version} ; bundle install ; bundle exec rake hydra:spec'}
end
if $?.exitstatus != 0
fail = true
break
end
end
system %{rvm #{current}}
exit (fail ? 1 : 0)
end end
end end

View File

@ -1,5 +0,0 @@
<% Facter.loadfacts %>
workers:
- type: local
runners: <%= Facter.sp_number_processors %>