From ffd9079da28466f6b9a2300ab41916ae0fd591be Mon Sep 17 00:00:00 2001 From: Blake Watters Date: Mon, 12 Aug 2013 14:00:20 -0400 Subject: [PATCH] Build and run unit tests against the iOS 5.0 SDK to validate minimum deployment target compatibility --- Rakefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Rakefile b/Rakefile index f0489d2..75ad4c2 100644 --- a/Rakefile +++ b/Rakefile @@ -5,6 +5,7 @@ namespace :test do desc "Run the AFNetworking Tests for iOS" task :ios => :prepare do + $ios_success_5_0 = system("xctool -workspace AFNetworking.xcworkspace -scheme 'iOS Tests' -sdk iphonesimulator5.0 -configuration Release test -test-sdk iphonesimulator5.0") $ios_success = system("xctool -workspace AFNetworking.xcworkspace -scheme 'iOS Tests' -sdk iphonesimulator -configuration Release test -test-sdk iphonesimulator") end @@ -16,6 +17,7 @@ end desc "Run the AFNetworking Tests for iOS & Mac OS X" task :test => ['test:ios', 'test:osx'] do + puts "\033[0;31m! iOS unit tests failed under iPhone Simulator 5.0 SDK" unless $ios_success_5_0 puts "\033[0;31m! iOS unit tests failed" unless $ios_success puts "\033[0;31m! OS X unit tests failed" unless $osx_success if $ios_success && $osx_success