Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
Adman65 authored and Adman65 committed Mar 8, 2011
1 parent 4b55b65 commit 7f260d9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
16 changes: 0 additions & 16 deletions app/jobs/test_gem_job.rb

This file was deleted.

10 changes: 9 additions & 1 deletion lib/tasks/ruby_gems.rake
Expand Up @@ -38,7 +38,15 @@ namespace :ruby_gems do
desc "Run tests for all Gems in the db"
task :test => :environment do
RubyGem.order('updated_at asc').each do |ruby_gem|
Resque.enqueue TestGemJob, ruby_gem.name
repo_url = ruby_gem.github_url.chomp.gsub(/https?/,'git') + '.git'
repo_name = ruby_gem.github_url.split('/').last

bash_script = Rails.root.join('bash','test_repo.sh')

cmd = "/bin/bash -l -c '#{bash_script} #{repo_url}'"
ruby_gem.test_log = %x{echo "Running: #{cmd}" ; #{cmd}}

ruby_gem.save!
end
end

Expand Down

0 comments on commit 7f260d9

Please sign in to comment.