Permalink
Browse files

Updated SDK and configured test targets to run tests after build

  • Loading branch information...
1 parent eded31b commit d9a07b9d5401eeed1c20d890c66fb5c273801618 @thestoics thestoics committed Jun 13, 2012
Showing with 6 additions and 1 deletion.
  1. +4 −0 Objection.xcodeproj/project.pbxproj
  2. +2 −1 Rakefile
@@ -1470,6 +1470,7 @@
);
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
+ TEST_AFTER_BUILD = YES;
WRAPPER_EXTENSION = octest;
};
name = Debug;
@@ -1498,6 +1499,7 @@
);
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
+ TEST_AFTER_BUILD = YES;
WRAPPER_EXTENSION = octest;
};
name = Release;
@@ -1530,6 +1532,7 @@
);
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
+ TEST_AFTER_BUILD = YES;
WRAPPER_EXTENSION = octest;
};
name = Debug;
@@ -1559,6 +1562,7 @@
);
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
+ TEST_AFTER_BUILD = YES;
WRAPPER_EXTENSION = octest;
};
name = Release;
View
@@ -2,7 +2,7 @@ PROJECT_NAME = "Objection"
CONFIGURATION = "Debug"
SPECS_TARGET_NAME = "Specs-OSX"
UI_SPECS_TARGET_NAME = "Specs-iOS"
-SDK_DIR = "/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk"
+SDK_DIR = "iphonesimulator5.1"
def xcodebuild_executable
ENV['XCODEBUILD'] || "xcodebuild"
@@ -76,6 +76,7 @@ namespace :specs do
desc "iOS Specs"
task :ios do
stdout = File.join(ENV['CC_BUILD_ARTIFACTS'], "build_uispecs.output") if (ENV['IS_CI_BOX'])
+ ENV["TEST_AFTER_BUILD"] = "Yes"
system_or_exit(%Q[#{xcodebuild_executable} -project #{PROJECT_NAME}.xcodeproj -target #{UI_SPECS_TARGET_NAME} -sdk #{SDK_DIR} -configuration #{CONFIGURATION} build], stdout)
end
end

0 comments on commit d9a07b9

Please sign in to comment.