forked from norio-nomura/Base32
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
55 lines (50 loc) · 1.25 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
require 'xcjobs'
def destinations
[ 'name=iPad 2',
'name=iPad Air',
'name=iPhone 4s',
'name=iPhone 5',
'name=iPhone 5s',
'name=iPhone 6',
'name=iPhone 6 Plus'
]
end
namespace :test do
xcode_test :ios do |t|
t.project = 'Base32'
t.scheme = 'Base32-iOS'
t.sdk = 'iphonesimulator'
t.configuration = 'Release'
destinations.each do |destination|
t.add_destination(destination)
end
t.formatter = 'xcpretty -c'
end
xcode_test :osx do |t|
t.project = 'Base32'
t.scheme = 'Base32-Mac'
t.sdk = 'macosx'
t.configuration = 'Release'
t.formatter = 'xcpretty -c'
end
xcode_test :SecEncodeTransformTests do |t|
t.project = 'Base32'
t.scheme = 'SecEncodeTransformTests'
t.sdk = 'macosx'
t.configuration = 'Release'
t.formatter = 'xcpretty -c'
end
end
# If this environment variable is missing, we must not be running on Travis.
if ENV["KEY_PASSWORD"]
XCJobs::Certificate.new do |t|
t.add_certificate('./certificates/AppleWWDRCA.cer')
t.add_certificate('./certificates/development.p12', ENV["KEY_PASSWORD"])
end
else
namespace :certificates do
task :install do
puts "skip certificates:install because KEY_PASSWORD does not exists."
end
end
end