Commit af34bef9 authored by Fabio Pelosin's avatar Fabio Pelosin

[Rakefile] Perform setup on for integration only if needed.

This skips the unneeded update.
parent a4e15873
......@@ -212,13 +212,15 @@ namespace :spec do
sh 'git config --global user.name "CocoaPods"' if `git config user.name`.empty?
title 'Running the specs'
sh "bundle exec bacon #{specs('**')}"
sh "bundle exec bacon #{specs('**')}"
title 'Ensuring specs repo is up to date'
sh "./bin/pod setup"
unless Pathname.new('~/.cocoapods/master').exist?
title 'Ensuring specs repo is up to date'
sh "./bin/pod setup"
end
title 'Running Integration 2 tests'
sh "bundle exec bacon spec/integration_2.rb"
sh "bundle exec bacon spec/integration_2.rb"
title 'Running examples'
Rake::Task['examples:build'].invoke
......
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