Skip to content

Commit

Permalink
[Rakefile] Made lint faster.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiopelosin committed Jun 27, 2012
1 parent 61306c9 commit 439e76c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ task :lint do
exit if ENV['skip-lint']

specs = `git diff-index --name-only HEAD | grep '.podspec$'`.strip.split("\n")
specs = FileList['**/*.podspec'] if specs.empty?
specs = ['.'] if specs.empty?

failures = []
version = `pod --version`
options = version =~ /0\.[1-5]\..*/ ? '--verbose' : '--quick --only-errors'
specs.each do |spec|
begin
next if not File.exists? spec
# Transition to 0.6
command = "pod spec lint '#{spec}' #{options}"
# todo test
ENV['skip_setup']='1'
command = "pod spec lint '#{spec}' --quick --only-errors"
puts command
# do it this way so we can trap Interrupt, doesn't work well with Kernel::system and Rake's sh
puts `#{command}`
Expand Down

0 comments on commit 439e76c

Please sign in to comment.