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