mirror of
https://github.com/zhigang1992/UICKeyChainStore.git
synced 2026-06-16 05:27:00 +08:00
58 lines
1.6 KiB
Ruby
58 lines
1.6 KiB
Ruby
DESTINATIONS = ["name=iPhone Retina (3.5-inch),OS=7.0",
|
|
"name=iPhone Retina (4-inch),OS=7.0",
|
|
"name=iPhone Retina (4-inch 64-bit),OS=7.0"]
|
|
|
|
desc 'Clean, Build and Test for iOS and OS X'
|
|
task :default => [:ios, :osx]
|
|
|
|
desc 'Cleans for iOS and OS X'
|
|
task :clean => ['ios:clean', 'osx:clean']
|
|
|
|
desc 'Builds for iOS and OS X'
|
|
task :build => ['ios:build', 'osx:build']
|
|
|
|
desc 'Test for iOS and OS X'
|
|
task :test => ['ios:test', 'osx:test']
|
|
|
|
desc 'Clean, Build, and Test for iOS'
|
|
task :ios => ['ios:clean', 'ios:build', 'ios:test']
|
|
|
|
namespace :ios do
|
|
desc 'Clean for iOS'
|
|
task :clean do
|
|
system("xcodebuild clean -scheme UICKeyChainStore | xcpretty -c")
|
|
end
|
|
|
|
desc 'Build for iOS'
|
|
task :build do
|
|
system("xcodebuild -scheme UICKeyChainStore CODE_SIGN_IDENTITY=\"\" CODE_SIGNING_REQUIRED=NO | xcpretty -c")
|
|
end
|
|
|
|
desc 'Test for iOS'
|
|
task :test do
|
|
DESTINATIONS.each do |destination|
|
|
system("xcodebuild test -scheme UICKeyChainStore -configuration Debug -sdk iphonesimulator -destination \"#{destination}\" | xcpretty -c")
|
|
end
|
|
end
|
|
end
|
|
|
|
desc 'Clean, Build, and Test for OS X'
|
|
task :osx => ['osx:clean', 'osx:build']
|
|
|
|
namespace :osx do
|
|
desc 'Clean for OS X'
|
|
task :clean do
|
|
system("xcodebuild clean -scheme libUICKeyChainStore | xcpretty -c")
|
|
end
|
|
|
|
desc 'Build for OS X'
|
|
task :build do
|
|
system("xcodebuild -scheme libUICKeyChainStore | xcpretty -c")
|
|
end
|
|
|
|
desc 'Test for OS X'
|
|
task :test do
|
|
system("xcodebuild test -scheme libUICKeyChainStore -configuration Debug -destination platform='OS X', arch=x86_64 | xcpretty -c")
|
|
end
|
|
end
|