forked from Rightpoint/RZTransitions
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
42 lines (34 loc) · 751 Bytes
/
Copy pathRakefile
File metadata and controls
42 lines (34 loc) · 751 Bytes
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
PROJ_PATH="RZTransitions-Demo/RZTransitions-Demo.xcodeproj"
BUILD_SCHEME="RZTransitions-Demo"
#
# 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 '#{BUILD_SCHEME}' -sdk iphonesimulator build") rescue nil
exit $?.exitstatus
end
#
# Analyze
#
task :analyze do
sh("xctool -project '#{PROJ_PATH}' -scheme '#{BUILD_SCHEME}' -sdk iphonesimulator analyze -failOnWarnings") rescue nil
exit $?.exitstatus
end
#
# Clean
#
task :clean do
sh("xctool -project '#{PROJ_PATH}' -scheme '#{BUILD_SCHEME}' -sdk iphonesimulator clean") rescue nil
end
#
# Default
#
task :default => 'build'