Skip to content

Add tvOS framework to deployment testing. #573

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 17, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Parse.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -4626,7 +4626,7 @@
/* Begin PBXLegacyTarget section */
812F31F71BCF40AA00FCBCD4 /* Bolts-watchOS */ = {
isa = PBXLegacyTarget;
buildArgumentsString = "$(SRCROOT)/Vendor/Bolts-ObjC/ \\\n\"Vendor/Bolts-ObjC/scripts/build_framework.sh -n -c Release --with-watchos\"";
buildArgumentsString = "$(SRCROOT)/Vendor/Bolts-ObjC/ \\\n\"Vendor/Bolts-ObjC/scripts/build_framework.sh -n -c Release --with-watchos --with-tvos\"";
buildConfigurationList = 812F31F81BCF40AA00FCBCD4 /* Build configuration list for PBXLegacyTarget "Bolts-watchOS" */;
buildPhases = (
);
Expand All @@ -4640,7 +4640,7 @@
};
81493A931A0D3492008D5504 /* Bolts-OSX */ = {
isa = PBXLegacyTarget;
buildArgumentsString = "$(SRCROOT)/Vendor/Bolts-ObjC/ \\\n\"Vendor/Bolts-ObjC/scripts/build_framework.sh -n -c Release --with-watchos\"";
buildArgumentsString = "$(SRCROOT)/Vendor/Bolts-ObjC/ \\\n\"Vendor/Bolts-ObjC/scripts/build_framework.sh -n -c Release --with-watchos --with-tvos\"";
buildConfigurationList = 81493A941A0D3493008D5504 /* Build configuration list for PBXLegacyTarget "Bolts-OSX" */;
buildPhases = (
);
Expand Down Expand Up @@ -4668,7 +4668,7 @@
};
F569F07A1B14DB1E00296F73 /* Bolts-iOS */ = {
isa = PBXLegacyTarget;
buildArgumentsString = "$(SRCROOT)/Vendor/Bolts-ObjC/ \\\n\"Vendor/Bolts-ObjC/scripts/build_framework.sh -n -c Release --with-watchos\"";
buildArgumentsString = "$(SRCROOT)/Vendor/Bolts-ObjC/ \\\n\"Vendor/Bolts-ObjC/scripts/build_framework.sh -n -c Release --with-watchos --with-tvos\"";
buildConfigurationList = F569F07B1B14DB1E00296F73 /* Build configuration list for PBXLegacyTarget "Bolts-iOS" */;
buildPhases = (
);
Expand Down
20 changes: 20 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,25 @@ namespace :build do
exit(1)
end
end

desc 'Build tvOS framework.'
task :tvos do
task = XCTask::BuildFrameworkTask.new do |t|
t.directory = script_folder
t.build_directory = build_folder
t.framework_type = XCTask::FrameworkType::TVOS
t.framework_name = 'Parse.framework'

t.workspace = 'Parse.xcworkspace'
t.scheme = 'Parse-tvOS'
t.configuration = 'Release'
end
result = task.execute
unless result
puts 'Failed to build tvOS Framework.'
exit(1)
end
end
end

namespace :package do
Expand Down Expand Up @@ -267,6 +286,7 @@ namespace :test do
desc 'Run Deployment Tests'
task :deployment do |_|
Rake::Task['build:watchos'].invoke
Rake::Task['build:tvos'].invoke
Rake::Task['package:frameworks'].invoke
Rake::Task['package:starters'].invoke
end
Expand Down