Commit 97840d45 authored by Eloy Duran's avatar Eloy Duran

Remove Guard dependencies. Use `rake spec:kick` for auto-test-running.

parent d66e82a9
...@@ -12,3 +12,14 @@ process do |files| ...@@ -12,3 +12,14 @@ process do |files|
end end
Kicker::Recipes::Ruby.run_tests(specs) Kicker::Recipes::Ruby.run_tests(specs)
end 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
...@@ -6,9 +6,6 @@ group :development do ...@@ -6,9 +6,6 @@ group :development do
gem "xcodeproj", :git => "git://github.com/CocoaPods/Xcodeproj.git" gem "xcodeproj", :git => "git://github.com/CocoaPods/Xcodeproj.git"
gem "bacon" gem "bacon"
gem "guard"
gem "guard-shell"
gem "growl"
gem "kicker" gem "kicker"
gem "mocha-on-bacon" gem "mocha-on-bacon"
gem "rake" gem "rake"
......
...@@ -10,11 +10,6 @@ GEM ...@@ -10,11 +10,6 @@ GEM
addressable (2.2.7) addressable (2.2.7)
bacon (1.1.0) bacon (1.1.0)
crack (0.3.1) crack (0.3.1)
growl (1.0.3)
guard (0.8.8)
thor (~> 0.14.6)
guard-shell (0.3.0)
guard (>= 0.2.0)
kicker (2.5.0) kicker (2.5.0)
rb-fsevent rb-fsevent
metaclass (0.0.1) metaclass (0.0.1)
...@@ -25,7 +20,6 @@ GEM ...@@ -25,7 +20,6 @@ GEM
open4 (1.3.0) open4 (1.3.0)
rake (0.9.2.2) rake (0.9.2.2)
rb-fsevent (0.9.0) rb-fsevent (0.9.0)
thor (0.14.6)
vcr (2.0.0) vcr (2.0.0)
webmock (1.8.0) webmock (1.8.0)
addressable (>= 2.2.7) addressable (>= 2.2.7)
...@@ -36,9 +30,6 @@ PLATFORMS ...@@ -36,9 +30,6 @@ PLATFORMS
DEPENDENCIES DEPENDENCIES
bacon bacon
growl
guard
guard-shell
kicker kicker
mocha-on-bacon mocha-on-bacon
open4 open4
......
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
def run_spec(s)
`bundle exec bacon #{s}`
end
# parameters:
# output => the formatted to use
# backtrace => number of lines, nil = everything
guard :shell do
watch(%r{^lib/cocoapods/(.+)\.rb$}) { |m| run_spec("spec/unit/#{m[1]}_spec.rb") }
watch(%r{spec/.+\.rb$}) { |s| run_spec(s) }
end
...@@ -94,6 +94,11 @@ namespace :spec do ...@@ -94,6 +94,11 @@ namespace :spec do
FileList["spec/#{dir}/*_spec.rb"].shuffle.join(' ') FileList["spec/#{dir}/*_spec.rb"].shuffle.join(' ')
end end
desc "Automatically run specs for updated files"
task :kick do
exec "bundle exec kicker -c"
end
desc "Run the unit specs" desc "Run the unit specs"
task :unit => :unpack_fixture_tarballs do task :unit => :unpack_fixture_tarballs do
sh "bundle exec bacon #{specs('unit/**')} -q" sh "bundle exec bacon #{specs('unit/**')} -q"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment