forked from kishikawakatsumi/JavaScriptBridge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
19 lines (16 loc) · 627 Bytes
/
Rakefile
File metadata and controls
19 lines (16 loc) · 627 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
WORKSPASE = "JavaScriptBridge.xcworkspace"
SCHEME = "Tests"
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"]
task :default => [:clean, :test]
desc "clean"
task :clean do
system("xcodebuild clean -workspace #{WORKSPASE} -scheme #{SCHEME} | xcpretty -c")
end
desc "run unit tests"
task :test do
DESTINATIONS.each do |destination|
system("xcodebuild test -workspace #{WORKSPASE} -scheme #{SCHEME} -configuration Debug -sdk iphonesimulator -destination \"#{destination}\" | xcpretty -c")
end
end