Skip to content

Commit

Permalink
Swap xctool for xcpretty
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake Watters committed Mar 14, 2014
1 parent 98ae43e commit 0026b99
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 3 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
source "http://rubygems.org"
source 'http://rubygems.org'

gem "rake", "~> 10.1.0"
gem 'rake', '~> 10.1.0'
gem 'cocoapods', '~> 0.29.0'
gem 'xcpretty', '~> 0.1.3'
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ GEM
activesupport (~> 3.0)
colored (~> 1.2)
rake
xcpretty (0.1.3)

PLATFORMS
ruby

DEPENDENCIES
cocoapods (~> 0.29.0)
rake (~> 10.1.0)
xcpretty (~> 0.1.3)
8 changes: 5 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
require 'rubygems'

namespace :spec do
task :prepare do
system("mkdir -p TransitionKit.xcodeproj/xcshareddata/xcschemes && cp Specs/Schemes/*.xcscheme TransitionKit.xcodeproj/xcshareddata/xcschemes/")
end

desc "Run the TransitionKit Specs for iOS"
task :ios => :prepare do
$ios_success = system("xctool -workspace TransitionKit.xcworkspace -scheme 'iOS Specs' -sdk iphonesimulator test -test-sdk iphonesimulator -arch i386 ONLY_ACTIVE_ARCH=NO")
task :ios => :prepare do
$ios_success = system("xcodebuild -workspace TransitionKit.xcworkspace -scheme 'iOS Specs' -sdk iphonesimulator clean test | xcpretty -c ; exit ${PIPESTATUS[0]}")
end

desc "Run the TransitionKit Specs for Mac OS X"
task :osx => :prepare do
$osx_success = system("xctool -workspace TransitionKit.xcworkspace -scheme 'OS X Specs' -sdk macosx test -test-sdk macosx")
$osx_success = system("xcodebuild -workspace TransitionKit.xcworkspace -scheme 'OS X Specs' -sdk macosx clean test | xcpretty -c ; exit ${PIPESTATUS[0]}")
end
end

Expand Down

0 comments on commit 0026b99

Please sign in to comment.