From 52e62ebfaf28bdcd49a760984f47c16624991625 Mon Sep 17 00:00:00 2001 From: Carson McDonald Date: Fri, 31 May 2013 07:08:17 -0400 Subject: [PATCH] Run build and build-tests before test --- Rakefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Rakefile b/Rakefile index d8cc621..08ac2a9 100644 --- a/Rakefile +++ b/Rakefile @@ -1,11 +1,15 @@ namespace :test do desc "Run the AFNetworking Tests for iOS" task :ios do + $ios_success = system("xctool -workspace AFNetworking.xcworkspace -scheme 'iOS Tests' build -sdk iphonesimulator -configuration Release") + $ios_success = system("xctool -workspace AFNetworking.xcworkspace -scheme 'iOS Tests' build-tests -sdk iphonesimulator -configuration Release") $ios_success = system("xctool -workspace AFNetworking.xcworkspace -scheme 'iOS Tests' test -test-sdk iphonesimulator -configuration Release") end desc "Run the AFNetworking Tests for Mac OS X" task :osx do + $ios_success = system("xctool -workspace AFNetworking.xcworkspace -scheme 'OS X Tests' build -sdk macosx -configuration Release") + $ios_success = system("xctool -workspace AFNetworking.xcworkspace -scheme 'OS X Tests' build-tests -sdk macosx -configuration Release") $osx_success = system("xctool -workspace AFNetworking.xcworkspace -scheme 'OS X Tests' test -test-sdk macosx -sdk macosx -configuration Release") end end