Skip to content

Commit

Permalink
Updated SDK and configured test targets to run tests after build
Browse files Browse the repository at this point in the history
  • Loading branch information
jdewind committed Jun 13, 2012
1 parent eded31b commit d9a07b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Objection.xcodeproj/project.pbxproj
Expand Up @@ -1470,6 +1470,7 @@
); );
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos; SDKROOT = iphoneos;
TEST_AFTER_BUILD = YES;
WRAPPER_EXTENSION = octest; WRAPPER_EXTENSION = octest;
}; };
name = Debug; name = Debug;
Expand Down Expand Up @@ -1498,6 +1499,7 @@
); );
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos; SDKROOT = iphoneos;
TEST_AFTER_BUILD = YES;
WRAPPER_EXTENSION = octest; WRAPPER_EXTENSION = octest;
}; };
name = Release; name = Release;
Expand Down Expand Up @@ -1530,6 +1532,7 @@
); );
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx; SDKROOT = macosx;
TEST_AFTER_BUILD = YES;
WRAPPER_EXTENSION = octest; WRAPPER_EXTENSION = octest;
}; };
name = Debug; name = Debug;
Expand Down Expand Up @@ -1559,6 +1562,7 @@
); );
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx; SDKROOT = macosx;
TEST_AFTER_BUILD = YES;
WRAPPER_EXTENSION = octest; WRAPPER_EXTENSION = octest;
}; };
name = Release; name = Release;
Expand Down
3 changes: 2 additions & 1 deletion Rakefile
Expand Up @@ -2,7 +2,7 @@ PROJECT_NAME = "Objection"
CONFIGURATION = "Debug" CONFIGURATION = "Debug"
SPECS_TARGET_NAME = "Specs-OSX" SPECS_TARGET_NAME = "Specs-OSX"
UI_SPECS_TARGET_NAME = "Specs-iOS" UI_SPECS_TARGET_NAME = "Specs-iOS"
SDK_DIR = "/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk" SDK_DIR = "iphonesimulator5.1"


def xcodebuild_executable def xcodebuild_executable
ENV['XCODEBUILD'] || "xcodebuild" ENV['XCODEBUILD'] || "xcodebuild"
Expand Down Expand Up @@ -76,6 +76,7 @@ namespace :specs do
desc "iOS Specs" desc "iOS Specs"
task :ios do task :ios do
stdout = File.join(ENV['CC_BUILD_ARTIFACTS'], "build_uispecs.output") if (ENV['IS_CI_BOX']) 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) system_or_exit(%Q[#{xcodebuild_executable} -project #{PROJECT_NAME}.xcodeproj -target #{UI_SPECS_TARGET_NAME} -sdk #{SDK_DIR} -configuration #{CONFIGURATION} build], stdout)
end end
end end

0 comments on commit d9a07b9

Please sign in to comment.