Skip to content

Instantly share code, notes, and snippets.

@nishabe
Last active July 16, 2019 18:50
Show Gist options
  • Save nishabe/93486ce1b40a122ef1220a1eb0b14962 to your computer and use it in GitHub Desktop.
Save nishabe/93486ce1b40a122ef1220a1eb0b14962 to your computer and use it in GitHub Desktop.
Fastfile
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
default_platform(:ios)
platform :ios do
desc "Description of what the lane does"
lane :metrics do
scan(scheme: "testSonar",
code_coverage: true,
derived_data_path: "./DerivedData",
output_directory: "./sonar-reports",
devices: "iPhone 6s")
slather(cobertura_xml: true,
jenkins: true,
scheme: "testSonar",
build_directory: "./DerivedData",
output_directory: "./sonar-reports",
proj: "./testSonar.xcodeproj")
swiftlint(output_file: "./sonar-reports/swiftlint.txt",
ignore_exit_status: true)
sonar
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment