Skip to content

Commit 0705d28

Browse files
committed
Add a rake task to build the framework target and the example project
1 parent 330cf5e commit 0705d28

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
source "http://rubygems.org"
22

33
gem "cocoapods", "~> 0.39.0"
4+
gem "rake"
5+
gem "xcpretty"

Gemfile.lock

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,25 @@ GEM
4545
molinillo (0.4.4)
4646
nap (1.1.0)
4747
netrc (0.7.8)
48+
rake (10.5.0)
49+
rouge (1.10.1)
4850
thread_safe (0.3.5)
4951
tzinfo (1.2.2)
5052
thread_safe (~> 0.1)
5153
xcodeproj (0.28.2)
5254
activesupport (>= 3)
5355
claide (~> 0.9.1)
5456
colored (~> 1.2)
57+
xcpretty (0.2.2)
58+
rouge (~> 1.8)
5559

5660
PLATFORMS
5761
ruby
5862

5963
DEPENDENCIES
6064
cocoapods (~> 0.39.0)
65+
rake
66+
xcpretty
6167

6268
BUNDLED WITH
6369
1.11.2

Rakefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
task default: :build
2+
3+
desc "Build the framework target and the example project"
4+
task :build do
5+
sh %(xcodebuild -project ICInputAccessory.xcodeproj -scheme ICInputAccessory -sdk iphonesimulator -destination "name=iPhone 6,OS=latest" clean build | xcpretty -c)
6+
sh %(xcodebuild -workspace ICInputAccessory.xcworkspace -scheme Example -sdk iphonesimulator -destination "name=iPhone 6,OS=latest" clean build | xcpretty -c)
7+
end

0 commit comments

Comments
 (0)