Commit 36fefd7b authored by Fabio Pelosin's avatar Fabio Pelosin

[Rake] Simplify spec:ci task and ensure that the repos are up to date

parent fd337553
......@@ -145,20 +145,14 @@ namespace :spec do
#
desc "Run all specs and build all examples"
task :ci => :unpack_fixture_tarballs do
title 'Running the specs'
sh "bundle exec bacon #{specs('**/*')}"
require 'pathname'
unless Pathname.new(ENV['HOME']+'/.cocoapods/repos/master').exist?
title 'Ensuring specs repo is up to date'
unless Pathname.new(ENV['HOME']+'/.cocoapods/repos/master').exist?
sh "./bin/pod setup"
end
sh "./bin/pod repo update"
title 'Running Integration tests'
sh "bundle exec bacon spec/integration.rb"
title 'Running examples'
Rake::Task['examples:build'].invoke
Rake::Task['spec:all'].invoke
end
desc "Rebuild all the fixture tarballs"
......
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