-
Notifications
You must be signed in to change notification settings - Fork 187
Expand file tree
/
Copy pathRakefile
More file actions
46 lines (38 loc) · 1.07 KB
/
Rakefile
File metadata and controls
46 lines (38 loc) · 1.07 KB
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
PROJ_PATH="RZTransitions-Demo/RZTransitions-Demo.xcodeproj"
DEMO_OBJC="RZTransitions-Demo"
DEMO_SWIFT="RZTransitions-Demo-Swift"
#
# Install
#
task :install do
# don't care if this fails on travis
sh("brew update") rescue nil
sh("brew upgrade xctool") rescue nil
end
#
# Build
#
task :build do
sh("xctool -project '#{PROJ_PATH}' -scheme '#{DEMO_OBJC}' -sdk iphonesimulator build") rescue nil
sh("xctool -project '#{PROJ_PATH}' -scheme '#{DEMO_SWIFT}' -sdk iphonesimulator build") rescue nil
exit $?.exitstatus
end
#
# Analyze
#
task :analyze do
sh("xctool -project '#{PROJ_PATH}' -scheme '#{DEMO_OBJC}' -sdk iphonesimulator analyze -failOnWarnings") rescue nil
sh("xctool -project '#{PROJ_PATH}' -scheme '#{DEMO_SWIFT}' -sdk iphonesimulator analyze -failOnWarnings") rescue nil
exit $?.exitstatus
end
#
# Clean
#
task :clean do
sh("xctool -project '#{PROJ_PATH}' -scheme '#{DEMO_OBJC}' -sdk iphonesimulator clean") rescue nil
sh("xctool -project '#{PROJ_PATH}' -scheme '#{DEMO_SWIFT}' -sdk iphonesimulator clean") rescue nil
end
#
# Default
#
task :default => 'build'