forked from AliSoftware/Reusable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
32 lines (27 loc) · 1.1 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
28
29
30
31
32
#
# Rakefile
# Reusable
#
def run(command)
system(command) or raise "RAKE TASK FAILED: #{command}"
end
namespace "ci" do
desc "Builds the Reusable framework using Carthage"
task :carthage do |t|
run "carthage build --no-skip-current --verbose"
end
desc "Builds the ReusableDemo project using xcodebuild."
task :build do |t, args|
destination = ENV["DESTINATION"] ||= "OS=9.3,name=iPhone 6,platform=iOS Simulator"
run "set -o pipefail && xcodebuild build -workspace Example/ReusableDemo.xcworkspace -scheme ReusableDemo -sdk iphonesimulator -destination='#{destination}' ONLY_ACTIVE_ARCH=NO | xcpretty"
end
desc "Tests the ReusableDemo project using xcodebuild."
task :test do |t, args|
destination = ENV["DESTINATION"] ||= "OS=9.3,name=iPhone 6,platform=iOS Simulator"
run "set -o pipefail && xcodebuild test -workspace Example/ReusableDemo.xcworkspace -scheme ReusableDemo -sdk iphonesimulator -destination='#{destination}' ONLY_ACTIVE_ARCH=NO | xcpretty"
end
desc "Lints the Reusable.podspec"
task :lintpod do |t|
run "pod lib lint --verbose --allow-warnings"
end
end