lib/gym/options.rb in gym-1.7.0 vs lib/gym/options.rb in gym-1.8.0
- old
+ new
@@ -150,16 +150,20 @@
optional: true),
FastlaneCore::ConfigItem.new(key: :buildlog_path,
short_option: "-l",
env_name: "GYM_BUILDLOG_PATH",
description: "The directory where to store the build log",
- default_value: "~/Library/Logs/gym"),
+ default_value: "#{FastlaneCore::Helper.buildlog_path}/gym"),
FastlaneCore::ConfigItem.new(key: :sdk,
short_option: "-k",
env_name: "GYM_SDK",
description: "The SDK that should be used for building the application",
optional: true),
+ FastlaneCore::ConfigItem.new(key: :toolchain,
+ env_name: "GYM_TOOLCHAIN",
+ description: "The toolchain that should be used for building the application (e.g. com.apple.dt.toolchain.Swift_2_3, org.swift.30p620160816a)",
+ optional: true),
FastlaneCore::ConfigItem.new(key: :provisioning_profile_path,
short_option: "-e",
env_name: "GYM_PROVISIONING_PROFILE_PATH",
description: "The path to the provisioning profile (optional)",
optional: true,
@@ -193,10 +197,48 @@
FastlaneCore::ConfigItem.new(key: :suppress_xcode_output,
short_option: "-r",
env_name: "SUPPRESS_OUTPUT",
description: "Suppress the output of xcodebuild to stdout. Output is still saved in buildlog_path",
optional: true,
- is_string: false)
+ is_string: false),
+ FastlaneCore::ConfigItem.new(key: :disable_xcpretty,
+ env_name: "DISABLE_XCPRETTY",
+ description: "Disable xcpretty formatting of build output",
+ optional: true,
+ is_string: false),
+ FastlaneCore::ConfigItem.new(key: :xcpretty_test_format,
+ env_name: "XCPRETTY_TEST_FORMAT",
+ description: "Use the test (RSpec style) format for build output",
+ optional: true,
+ is_string: false),
+ FastlaneCore::ConfigItem.new(key: :xcpretty_formatter,
+ env_name: "XCPRETTY_FORMATTER",
+ description: "A custom xcpretty formatter to use",
+ optional: true,
+ verify_block: proc do |value|
+ UI.user_error!("Formatter file not found at path '#{File.expand_path(value)}'") unless File.exist?(value)
+ end),
+ FastlaneCore::ConfigItem.new(key: :xcpretty_report_junit,
+ env_name: "XCPRETTY_REPORT_JUNIT",
+ description: "Have xcpretty create a JUnit-style XML report at the provided path",
+ optional: true,
+ verify_block: proc do |value|
+ UI.user_error!("Report output location not found at path '#{File.expand_path(value)}'") unless File.exist?(value)
+ end),
+ FastlaneCore::ConfigItem.new(key: :xcpretty_report_html,
+ env_name: "XCPRETTY_REPORT_HTML",
+ description: "Have xcpretty create a simple HTML report at the provided path",
+ optional: true,
+ verify_block: proc do |value|
+ UI.user_error!("Report output location not found at path '#{File.expand_path(value)}'") unless File.exist?(value)
+ end),
+ FastlaneCore::ConfigItem.new(key: :xcpretty_report_json,
+ env_name: "XCPRETTY_REPORT_JSON",
+ description: "Have xcpretty create a JSON compilation database at the provided path",
+ optional: true,
+ verify_block: proc do |value|
+ UI.user_error!("Report output location not found at path '#{File.expand_path(value)}'") unless File.exist?(value)
+ end)
]
end
end
end