我正在尝试使用 Fastlane 将 Slather 创建的代码覆盖率报告发送到 Codacy。这是车道:
desc "Do A Slather and send to Codacy"
lane :code_coverage do |options|
slather(output_directory: "SlatherReports", scheme: "MyApp", configuration: "Debug", workspace: "MyApp.xcworkspace", proj: "MyApp.xcodeproj", cobertura_xml: true, use_bundle_exec: true)
ENV["CODACY_PROJECT_TOKEN"] = options[:codacy_token]
sh "bash <(curl -Ls https://coverage.codacy.com/get.sh -r SlatherReports/cobertura.xml)"
end
Slather 工作,但 bash 脚本没有。它返回了这个错误:
[06:40:19]:命令 'bash <(curl -Ls https://coverage.codacy.com/get.sh -r SlatherReports/cobertura.xml)' 的退出状态是 2 而不是 0。sh:- c:第 0 行:意外标记附近的语法错误`(' sh:-c:第 0 行:`bash <(curl -Ls https://coverage.codacy.com/get.sh -r SlatherReports/cobertura.xml)'
那么,我该如何解决这个问题?谢谢。