Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 33 lines (27 sloc) 0.76 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
recipe :ruby

Kicker::Recipes::Ruby.runner_bin = 'bacon'

process do |files|
  specs = files.take_and_map do |file|
    if file =~ %r{lib/cocoapods/(.+?)\.rb$}
      s = Dir.glob("spec/**/#{File.basename(file, '.rb')}_spec.rb")
      if file =~ %r{lib/cocoapods/installer.*\.rb$}
        s.concat(['spec/unit/installer_spec.rb', 'spec/unit/installer/target_installer_spec.rb'])
      end
      s.uniq unless s.empty?
    end
  end
  Kicker::Recipes::Ruby.run_tests(specs)
end

# Have written this so many times, probably should make a recipe out of it.
process do |files|
  files.each do |file|
    case file
    when 'Gemfile'
      files.delete(file)
      execute 'bundle install'
    end
  end
end

recipe :ignore
ignore(/.*\/?tags/)
ignore(/.*\/?\.git/)

Something went wrong with that request. Please try again.