-
Notifications
You must be signed in to change notification settings - Fork 45
/
Rakefile
27 lines (24 loc) · 1.15 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
task :default => []
desc "Run unit tests"
task :test do
system %Q(osascript -e 'tell app "iPhone Simulator" to quit')
raise "Specs failed." unless system %Q(xcodebuild -workspace stackmob-ios-sdk.xcworkspace -scheme "unit tests" -sdk iphonesimulator -configuration Debug build)
end
namespace "test" do
desc "Run integration tests"
task :integration do
system %Q(osascript -e 'tell app "iPhone Simulator" to quit')
raise "Specs failed." unless system %Q(xcodebuild -workspace stackmob-ios-sdk.xcworkspace -scheme "integration tests" -sdk iphonesimulator -configuration Debug build)
end
desc "Run Core Data integration tests"
task :coredata do
system %Q(osascript -e 'tell app "iPhone Simulator" to quit')
raise "Specs failed." unless system %Q(xcodebuild -workspace stackmob-ios-sdk.xcworkspace -scheme "integrationTestsCoreData" -sdk iphonesimulator -configuration Debug build)
end
end
task :clean do
exec "xcodebuild -alltargets clean"
exec "rm -rf ~/Library/Application\ Support/iPhone\ Simulator/*"
exec "rm -rf ~/Library/Developer/Xcode/DerivedData/stackmob-ios-sdk*"
exec "rm -rf ~/Library/Caches/appCode10/DerivedData/stackmob-ios-sdk*"
end