103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
|
# File 'lib/fastlane/actions/slather.rb', line 103
def self.available_options
[
FastlaneCore::ConfigItem.new(key: :build_directory,
env_name: "FL_SLATHER_BUILD_DIRECTORY", description: "The location of the build output", optional: true),
FastlaneCore::ConfigItem.new(key: :proj,
env_name: "FL_SLATHER_PROJ", description: "The project file that slather looks at", verify_block: proc do |value|
UI.user_error!("No project file specified, pass using `proj: 'Project.xcodeproj'`") unless value and !value.empty?
end,
optional: true),
FastlaneCore::ConfigItem.new(key: :workspace,
env_name: "FL_SLATHER_WORKSPACE",
description: "The workspace that slather looks at",
optional: true),
FastlaneCore::ConfigItem.new(key: :scheme,
env_name: "FL_SLATHER_SCHEME", description: "Scheme to use when calling slather",
optional: true),
FastlaneCore::ConfigItem.new(key: :input_format,
env_name: "FL_SLATHER_INPUT_FORMAT", description: "The input format that slather should look for",
optional: true),
FastlaneCore::ConfigItem.new(key: :buildkite,
env_name: "FL_SLATHER_BUILDKITE_ENABLED", description: "Tell slather that it is running on Buildkite",
is_string: false,
optional: true),
FastlaneCore::ConfigItem.new(key: :teamcity,
env_name: "FL_SLATHER_TEAMCITY_ENABLED", description: "Tell slather that it is running on TeamCity",
is_string: false,
optional: true),
FastlaneCore::ConfigItem.new(key: :jenkins,
env_name: "FL_SLATHER_JENKINS_ENABLED", description: "Tell slather that it is running on Jenkins",
is_string: false,
optional: true),
FastlaneCore::ConfigItem.new(key: :travis,
env_name: "FL_SLATHER_TRAVIS_ENABLED", description: "Tell slather that it is running on TravisCI",
is_string: false,
optional: true),
FastlaneCore::ConfigItem.new(key: :circleci,
env_name: "FL_SLATHER_CIRCLECI_ENABLED",
description: "Tell slather that it is running on CircleCI",
is_string: false,
optional: true),
FastlaneCore::ConfigItem.new(key: :coveralls,
env_name: "FL_SLATHER_COVERALLS_ENABLED",
description: "Tell slather that it should post data to Coveralls",
is_string: false,
optional: true),
FastlaneCore::ConfigItem.new(key: :simple_output,
env_name: "FL_SLATHER_SIMPLE_OUTPUT_ENABLED",
description: "Tell slather that it should output results to the terminal",
is_string: false,
optional: true),
FastlaneCore::ConfigItem.new(key: :gutter_json,
env_name: "FL_SLATHER_GUTTER_JSON_ENABLED",
description: "Tell slather that it should output results as Gutter JSON format",
is_string: false,
optional: true),
FastlaneCore::ConfigItem.new(key: :cobertura_xml,
env_name: "FL_SLATHER_COBERTURA_XML_ENABLED",
description: "Tell slather that it should output results as Cobertura XML format",
is_string: false,
optional: true),
FastlaneCore::ConfigItem.new(key: :html,
env_name: "FL_SLATHER_HTML_ENABLED",
description: "Tell slather that it should output results as static HTML pages",
is_string: false,
optional: true),
FastlaneCore::ConfigItem.new(key: :show,
env_name: "FL_SLATHER_SHOW_ENABLED",
description: "Tell slather that it should open static html pages automatically",
is_string: false,
default_value: false),
FastlaneCore::ConfigItem.new(key: :source_directory,
env_name: "FL_SLATHER_SOURCE_DIRECTORY",
description: "Tell slather the location of your source files",
optional: true),
FastlaneCore::ConfigItem.new(key: :output_directory,
env_name: "FL_SLATHER_OUTPUT_DIRECTORY",
description: "Tell slather the location of for your output files",
optional: true),
FastlaneCore::ConfigItem.new(key: :ignore,
env_name: "FL_SLATHER_IGNORE",
description: "Tell slather to ignore files matching a path or any path from an array of paths",
is_string: false,
optional: true),
FastlaneCore::ConfigItem.new(key: :verbose,
env_name: "FL_SLATHER_VERBOSE",
description: "Tell slather to enable verbose mode",
is_string: false,
optional: true),
FastlaneCore::ConfigItem.new(key: :use_bundle_exec,
env_name: "FL_SLATHER_USE_BUNDLE_EXEC",
description: "Use bundle exec to execute slather. Make sure it is in the Gemfile",
is_string: false,
default_value: false),
FastlaneCore::ConfigItem.new(key: :binary_basename,
env_name: "FL_SLATHER_BINARY_BASENAME",
description: "Basename of the binary file, this should match the name of your bundle excluding its extension (i.e. YourApp [for YourApp.app bundle])",
default_value: false),
FastlaneCore::ConfigItem.new(key: :binary_file,
env_name: "FL_SLATHER_BINARY_FILE",
description: "Binary file name to be used for code coverage",
default_value: false),
FastlaneCore::ConfigItem.new(key: :source_files,
env_name: "FL_SLATHER_SOURCE_FILES",
description: "A Dir.glob compatible pattern used to limit the lookup to specific source files. Ignored in gcov mode",
default_value: false,
optional: true),
FastlaneCore::ConfigItem.new(key: :decimals,
env_name: "FL_SLATHER_DECIMALS",
description: "The amount of decimals to use for % coverage reporting",
is_string: false,
default_value: false,
optional: true)
]
end
|