fastlane/lib/fastlane/actions/pod_push.rb in fastlane-2.118.0.beta.20190309200014 vs fastlane/lib/fastlane/actions/pod_push.rb in fastlane-2.118.0.beta.20190310200100
- old
+ new
@@ -33,10 +33,18 @@
if params[:use_libraries]
command << "--use-libraries"
end
+ if params[:skip_import_validation]
+ command << "--skip-import-validation"
+ end
+
+ if params[:skip_tests]
+ command << "--skip-tests"
+ end
+
if params[:verbose]
command << "--verbose"
end
result = Actions.sh(command.join(' '))
@@ -54,11 +62,11 @@
def self.available_options
[
FastlaneCore::ConfigItem.new(key: :use_bundle_exec,
description: "Use bundle exec when there is a Gemfile presented",
- is_string: false,
+ type: Boolean,
default_value: false),
FastlaneCore::ConfigItem.new(key: :path,
description: "The Podspec you want to push",
optional: true,
verify_block: proc do |value|
@@ -69,15 +77,15 @@
description: "The repo you want to push. Pushes to Trunk by default",
optional: true),
FastlaneCore::ConfigItem.new(key: :allow_warnings,
description: "Allow warnings during pod push",
optional: true,
- is_string: false),
+ type: Boolean),
FastlaneCore::ConfigItem.new(key: :use_libraries,
description: "Allow lint to use static libraries to install the spec",
optional: true,
- is_string: false),
+ type: Boolean),
FastlaneCore::ConfigItem.new(key: :sources,
description: "The sources of repos you want the pod spec to lint with, separated by commas",
optional: true,
is_string: false,
type: Array,
@@ -86,13 +94,21 @@
end),
FastlaneCore::ConfigItem.new(key: :swift_version,
description: "The SWIFT_VERSION that should be used to lint the spec. This takes precedence over a .swift-version file",
optional: true,
is_string: true),
+ FastlaneCore::ConfigItem.new(key: :skip_import_validation,
+ description: "Lint skips validating that the pod can be imported",
+ optional: true,
+ type: Boolean),
+ FastlaneCore::ConfigItem.new(key: :skip_tests,
+ description: "Lint skips building and running tests during validation",
+ optional: true,
+ type: Boolean),
FastlaneCore::ConfigItem.new(key: :verbose,
description: "Show more debugging information",
optional: true,
- is_string: false,
+ type: Boolean,
default_value: false)
]
end
def self.return_value