-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathRakefile
More file actions
23 lines (19 loc) · 756 Bytes
/
Rakefile
File metadata and controls
23 lines (19 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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"]
desc 'Clean, Build and Test'
task :default => [:clean, :build, :test]
desc 'Clean'
task :clean do
sh "xcodebuild clean -scheme UUIDShortener | xcpretty -c; exit ${PIPESTATUS[0]}"
end
desc 'Build'
task :build do
sh "xcodebuild build -scheme UUIDShortener CODE_SIGN_IDENTITY=\"\" CODE_SIGNING_REQUIRED=NO | xcpretty -c; exit ${PIPESTATUS[0]}"
end
desc "Test"
task :test do
DESTINATIONS.each do |destination|
sh "xcodebuild test -scheme UUIDShortener -configuration Debug -sdk iphonesimulator -destination \"#{destination}\" | xcpretty -tc; exit ${PIPESTATUS[0]}"
end
end