-
Notifications
You must be signed in to change notification settings - Fork 385
/
Rakefile
58 lines (53 loc) · 1.49 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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('ios:build') do |t|
t.workspace = 'UICKeyChainStore'
t.scheme = 'iOS'
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('osx:build') do |t|
t.workspace = 'UICKeyChainStore'
t.scheme = 'Mac'
t.configuration = 'Release'
t.sdk = 'macosx'
t.build_dir = 'build'
t.formatter = 'xcpretty -c'
end
XCJobs::Test.new('ios:test') do |t|
t.workspace = 'UICKeyChainStore'
t.scheme = 'iOS'
t.configuration = 'Release'
destinations.each do |destination|
t.add_destination(destination)
end
t.build_dir = 'build'
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('osx:test') do |t|
t.workspace = 'UICKeyChainStore'
t.scheme = 'Mac'
t.configuration = 'Release'
t.sdk = 'macosx'
t.build_dir = 'build'
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