Build and run unit tests against the iOS 5.0 SDK to validate minimum deployment target compatibility

This commit is contained in:
Blake Watters 2013-08-12 14:00:20 -04:00 committed by Mattt Thompson
parent 99f77d1381
commit ffd9079da2

View file

@ -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