Files
UICKeyChainStore/Lib/Rakefile
2015-01-12 23:27:15 +09:00

70 lines
1.9 KiB
Ruby

require 'xcjobs'
def destinations
[ 'name=iPad 2,OS=7.1',
'name=iPad 2,OS=8.1',
'name=iPad Air,OS=7.1',
'name=iPad Air,OS=8.1',
'name=iPhone 4s,OS=7.1',
'name=iPhone 4s,OS=8.1',
'name=iPhone 5s,OS=7.1',
'name=iPhone 5s,OS=8.1',
'name=iPhone 6,OS=8.1',
'name=iPhone 6 Plus,OS=8.1'
]
end
XCJobs::Build.new('build:simulator') do |t|
t.project = 'UICKeyChainStore'
t.scheme = 'UICKeyChainStore-iOS'
t.sdk = 'iphonesimulator'
t.configuration = 'Release'
t.build_dir = 'build'
t.formatter = 'xcpretty -c'
t.add_build_setting('CODE_SIGN_IDENTITY', '')
t.add_build_setting('CODE_SIGNING_REQUIRED', 'NO')
end
XCJobs::Build.new('build:device') do |t|
t.project = 'UICKeyChainStore'
t.scheme = 'UICKeyChainStore-iOS'
t.sdk = 'iphoneos'
t.configuration = 'Release'
t.build_dir = 'build'
t.formatter = 'xcpretty -c'
t.add_build_setting('CODE_SIGN_IDENTITY', '')
t.add_build_setting('CODE_SIGNING_REQUIRED', 'NO')
end
XCJobs::Build.new('build:osx') do |t|
t.project = 'UICKeyChainStore'
t.scheme = 'UICKeyChainStore-Mac'
t.configuration = 'Release'
t.build_dir = 'build'
t.formatter = 'xcpretty -c'
t.add_build_setting('CODE_SIGN_IDENTITY', '')
t.add_build_setting('CODE_SIGNING_REQUIRED', 'NO')
end
XCJobs::Test.new('test:ios') do |t|
t.project = 'UICKeyChainStore'
t.scheme = 'libUICKeyChainStore-iOS'
t.configuration = 'Release'
t.build_dir = 'build'
destinations.each do |destination|
t.add_destination(destination)
end
t.formatter = 'xcpretty -c'
t.add_build_setting('GCC_INSTRUMENT_PROGRAM_FLOW_ARCS', 'YES')
t.add_build_setting('GCC_GENERATE_TEST_COVERAGE_FILES', 'YES')
end
XCJobs::Test.new('test:osx') do |t|
t.project = 'UICKeyChainStore'
t.scheme = 'libUICKeyChainStore-Mac'
t.sdk = 'macosx'
t.configuration = 'Release'
t.build_dir = 'build'
t.formatter = 'xcpretty -c'
end