Slide 85
Slide 85 text
Complete example
platform :ios do
desc "Collect all the metrics"
lane :metrics do
scan(scheme: "MyProject", code_coverage: true,
xcargs: "-derivedDataPath ./DerivedData", output_directory: "./reports")
slather(cobertura_xml: true, jenkins: true, scheme: "MyProject",
output_directory: "./reports", build_directory: "./DerivedData",
binary_basename: "MyProject", proj: "./MyProject.xcodeproj")
sh("cd .. && lizard ./MyProject -l swift --xml > ./reports/lizard-report.xml")
swiftlint(output_file: "./reports/swiftlint.txt", ignore_exit_status: true)
sonar(project_version: Time.new.strftime("%Y.%m.%d.%H.%M"))
end
end