【问题标题】:Dangerfile Swift Give File NameDangerfile Swift 给出文件名
【发布时间】:2018-05-08 20:13:49
【问题描述】:

我目前正在将 Danger 集成到 BuddyBuild 中,以便它为我运行预构建和构建后。

我有两个不同的 Dangerfiles 想要使用。

Buddybuild 集成 Danger 的网站说要运行这一行:

bundle exec danger --fail-on-errors=true

有没有办法传入一个参数,也给它一个文件名?从我正在阅读的内容来看,这基本上只会找到名为Dangerfile 的文件并使用它来冒险,但我想要两个不同的文件,即Dangerfile-prebuildDangerfile-postbuild

谢谢!

【问题讨论】:

    标签: swift xcode bundle swiftlint


    【解决方案1】:

    很高兴看到您使用 buddybuild!

    您可以运行danger --dangerfile=path 来指定要使用的危险文件。在 buddybuild 的上下文中,这意味着在 buddybuild_prebuild.sh 中使用 bundle exec danger --dangerfile=Dangerfile-prebuild 和在 buddybuild_postbuild.sh 中使用 bundle exec danger --dangerfile=Dangerfile-postbuild

    如果这有帮助,请告诉我!

    【讨论】:

      猜你喜欢
      • 2022-10-23
      • 1970-01-01
      • 2016-04-05
      • 1970-01-01
      • 2018-06-02
      • 2015-10-17
      • 1970-01-01
      • 2011-12-20
      • 2015-06-10
      相关资源
      最近更新 更多