1
我試圖用Fastlane生成Sonar/Jenkins的代碼覆蓋率。用Fastlane/Jenkins生成代碼覆蓋率
我與Jenkins一起運行的腳本:Fastlane測試。
在我中fastfile我這樣做:
desc "Runs all the tests"
lane :test do
scan(scheme: "XXX-icTests",
clean: true,
code_coverage: true,
output_directory: "sonar-reports",
output_types: "junit,json-compilation-database",
buildlog_path: "sonar-reports",
derived_data_path: "sonar-reports",
use_clang_report_name: true,
xcargs: "ONLY_ACTIVE_ARCH=YES"
)
slather(
cobertura_xml: true,
output_directory: "sonar-reports",
proj: " XXX.xcodeproj",
workspace: " XXX.xcworkspace",
scheme: " XXX-ic",
build_directory: "sonar-reports",
ignore:[]
)
oclint(
compile_commands: "sonar-reports/compile_commands.json",
report_type: 'pmd',
select_regex: /XXX/,
max_priority_1: 10,
max_priority_2: 400,
max_priority_3: 4000,
enable_clang_static_analyzer: false,
allow_duplicated_violations: false,
list_enabled_rules: true,
report_path: "sonar-reports/oclint.xml"
)
sonar
end
但在模擬器上構建應用程序時,它停止在這裏:
可以採取什麼問題在這種情況下?
感謝您的幫助。