forked from CocoaPods/Xcodeproj
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.kick
35 lines (30 loc) · 724 Bytes
/
.kick
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
33
34
recipe :ruby
Kicker::Recipes::Ruby.runner_bin = 'bacon'
process do |files|
specs = files.take_and_map do |file|
case file
when %r{ext/xcodeproj/.+?\.(h|rb|c)$}
execute 'rake ext:cleanbuild'
'spec/xcodeproj_ext_spec.rb'
when %r{lib/xcodeproj/(.+?)\.rb$}
s = Dir.glob("spec/**#{$1}_spec.rb")
puts
s 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(/\..+?\.sw.$/)
ignore(/.*\/?tags/)
ignore(/.*\/?\.git/)