ios_ci 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@ class BuildApp < BaseCommand
8
8
  end
9
9
 
10
10
  def main_command
11
- "cd #{@params.source_root} && xcodebuild #{build_args} -sdk #{@params.architecture} -configuration #{@params.configuration} clean build"
11
+ "cd #{@params.source_root} && xcodebuild #{build_args} -sdk #{@params.architecture} -configuration #{@params.configuration} clean build CONFIGURATION_BUILD_DIR=#{build_dir}"
12
12
  end
13
13
 
14
14
  def after_command
@@ -25,6 +25,10 @@ class BuildApp < BaseCommand
25
25
  "-scheme '#{@params.scheme}' -workspace '#{@params.workspace}'"
26
26
  end
27
27
 
28
+ def build_dir
29
+ "#{@params.source_root}/#{@params.build_path}/#{@params.configuration}-#{@params.architecture}"
30
+ end
31
+
28
32
  def cocoapods?
29
33
  File.exist?("#{@params.source_root}/Podfile")
30
34
  end
data/lib/model/params.rb CHANGED
@@ -79,7 +79,7 @@ class Params
79
79
  when ACTION_CALABASH
80
80
  @action = ACTION_CALABASH
81
81
  when "--source-root"
82
- @source_root = arg
82
+ @source_root = (arg == "." || arg == "./") ? Dir.pwd : arg
83
83
  when "--target"
84
84
  @target = arg
85
85
  when "--scheme"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ios_ci
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: