Files
UICKeyChainStore/Lib/Rakefile
2015-02-02 06:26:50 +09:00

74 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.coverage = true
t.formatter = 'xcpretty -c'
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
XCJobs::Coverage::Coveralls.new() do |t|
t.add_extension('.m')
t.add_exclude('Lib/UICKeyChainStoreTests')
end