yolo 1.1.12 → 1.1.15
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +9 -6
- data/lib/yolo/config/settings.rb +1 -1
- data/lib/yolo/tools/ios/xcode.rb +2 -2
- data/spec/tools/ios/xcode_spec.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -41,15 +41,18 @@ It is recommended that you have [rvm](https://rvm.io/) installed and do not inst
|
|
41
41
|
* [Calabash](https://github.com/alexefish/yolo/wiki/Calabash)
|
42
42
|
|
43
43
|
## Jenkins
|
44
|
-
Running yolo from your Jenkins jobs is very simple
|
44
|
+
Running yolo from your Jenkins jobs is very simple.
|
45
45
|
|
46
|
-
|
47
|
-
* [rvm](https://wiki.jenkins-ci.org/display/JENKINS/RVM+Plugin)
|
48
|
-
* [Jenkins Git Plugin](http://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin)
|
46
|
+
Ensure you project contains a Gemfile with the required gems, e.g:
|
49
47
|
|
50
|
-
|
48
|
+
source 'https://rubygems.org'
|
51
49
|
|
52
|
-
|
50
|
+
gem 'rake'
|
51
|
+
gem 'yolo', '>= 1.1.12'
|
52
|
+
|
53
|
+
You can simply add an execute shell build step to execute yolo rake tasks, e.g:
|
54
|
+
|
55
|
+
![Jenkins Setup](http://i.imgur.com/HoXQVoe.png)
|
53
56
|
|
54
57
|
## License
|
55
58
|
|
data/lib/yolo/config/settings.rb
CHANGED
data/lib/yolo/tools/ios/xcode.rb
CHANGED
@@ -20,7 +20,7 @@ module Yolo
|
|
20
20
|
# @param info_plist_path [String] The full path to an xcode projects info_plist
|
21
21
|
# @return [Xcode] An Xcode instance
|
22
22
|
def initialize(info_plist_path = "")
|
23
|
-
self.prefs_plist_path = "#{
|
23
|
+
self.prefs_plist_path = "#{File.expand_path('~')}/Library/Preferences/com.apple.dt.Xcode.plist"
|
24
24
|
self.info_plist_path = info_plist_path
|
25
25
|
end
|
26
26
|
|
@@ -39,7 +39,7 @@ module Yolo
|
|
39
39
|
# @return [String] The full path to Xcode's build location
|
40
40
|
def build_path
|
41
41
|
path = prefs["IDECustomDerivedDataLocation"]
|
42
|
-
path = "#{
|
42
|
+
path = "#{File.expand_path('~')}/Library/Developer/Xcode/DerivedData" unless path
|
43
43
|
path
|
44
44
|
end
|
45
45
|
|
@@ -38,7 +38,7 @@ describe Yolo::Tools::Ios::Xcode do
|
|
38
38
|
|
39
39
|
it "should recognise a default build folder location" do
|
40
40
|
@xcode.stub(:prefs){{}}
|
41
|
-
|
41
|
+
File.stub(:expand_path){"path"}
|
42
42
|
@xcode.build_path.should eq("path/Library/Developer/Xcode/DerivedData")
|
43
43
|
end
|
44
44
|
end
|