- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我找不到一个非常简单(恕我直言)设置的解决方案。
在我的 iOS 应用程序中,我使用 FaSTLane 通过 scan
运行测试命令。
这会生成一个非常有用的 xpretty 测试报告 HTML 文件。
我想在测试结束时发送一个 slack 通知,并附上指向我生成的 HTML 测试结果文件的链接。我正在使用安装在 minimac 上的带有运行器的 Gitlab 来运行我的 CI 管道。
到目前为止,我找不到此设置的解决方案。有人可以指出我正确的方向吗?
最佳答案
我希望您在最近 2 年内已经找到了解决方案。正如评论中所指出的,您可以使用 Slack 的 webhooks。然后你可以运行 slack
在您的步骤中使用命令,例如 this :
platform :ios do
before_all do
ENV["SLACK_URL"] = "https://hooks.slack.com/services/T0A6LPW3A/B5B2SBA13/etc..."
desc "Tests, builds and uploads to iTunesConnect"
lane :appstore do
ENV["LANE_NAME"] = "Flicker"
ENV["BUNDLE_ID"] = "com.epri.fem"
ENV["SCHEME_NAME"] = ENV["LANE_NAME"]
ENV["TEAM_NAME"] = "Electric Power Research Institute"
runConfiguration()
end
def runConfiguration()
slack(
message: ENV["LANE_NAME"] + ") Incoming from branch " + sh("git rev-parse --abbrev-ref HEAD") + " - " + sh("git rev-parse HEAD"),
slack_url: ENV["SLACK_URL"]
)
sigh(team_name: ENV["TEAM_NAME"],
app_identifier: ENV["BUNDLE_ID"],
skip_certificate_verification: true) # Update Provisioing Profiles / Code Signing
slack(
message: "Finished updating provisioing profiles",
default_payloads: [],
slack_url: ENV["SLACK_URL"]
)
scan(
scheme: ENV["SCHEME_NAME"],
slack_url: ENV["SLACK_URL"]
) # run tests
gym(scheme: ENV["SCHEME_NAME"],
clean: true) # build the app
slack(
message: "Finished building app",
default_payloads: [],
slack_url: ENV["SLACK_URL"]
)
pilot(skip_submission: true,
team_name: ENV["TEAM_NAME"]) #upload to test flight
slack(
message: "Finished archiving and uploading to iTunesConnect",
default_payloads: [],
slack_url: ENV["SLACK_URL"]
)
end
error do |lane, exception|
slack(
message: exception.message,
default_payloads: [],
slack_url: ENV["SLACK_URL"]
)
end
关于gitlab-ci - 如何通过 FaSTLane 将测试报告附加到松弛通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53121436/
我有一个盒子,上面有一个溢出卷轴。当你到达盒子的尽头时;我想触发一个事件(滚动到页面的下一部分)。 下面的代码有效,但是,我希望其中有一些“松弛”。因此它不需要在您到达框的末尾时直接触发,而仅在您坚持
有时当我尝试打开一个松弛模式时,它会在生产中给出一个 expired_trigger_id 错误。我如何调试并找出它发生的原因?我在 js 中使用 slack bolt 来创建聊天机器人。 最佳答案
我的问题很简单,我认为创建这个程序只需要几个小时。但是现在我整天都在研究它,试图弄清楚我可能做错了什么。 我想做的就是使用他们的 postMessage api 将消息发布到 slack .我已经能够
A 有一个脚本可以完美地将消息发送到松弛 channel 。该脚本放置在具有以下 curl 版本的测试服务器上: curl --version curl 7.15.5 (x86_64-redhat-l
我使用 node.js 构建我的 Slack 机器人。我使用了@slack/client。它工作正常。现在我有一个通过 slack message builder 获得的 JSON 格式的数据。像这样
看起来没有选项可以将包含表格的消息发布到 slack。我正在尝试使用文本格式构建表格。在下面的示例中,文本未对齐,因为第一行包含文本 ROW1,第二行包含文本 ROW。有没有办法在 ROW 之后添加空
我正在使用 slack_nagios.pl 脚本。 Ubuntu 14.05 和 Nagios 4.4.5 https://raw.githubusercontent.com/tinyspeck/se
我想检索在我的团队松弛域中发送的所有消息。虽然我更喜欢以 XML 或 JSON 形式接收数据,但我能够以任何形式处理数据。 如何检索所有这些消息?是否可以?如果没有,我可以检索特定 channel 的
在使用 CPLEX C API 进行 MIP 优化期间,是否可以检索当前节点(即每 n 个节点)的线性松弛(双变量、降低的成本等)? 我注册了一个回调函数 (CPXsetsolvecallbackfu
我正在使用 Python 和它的 Slacker API 将消息发布到松弛 channel ,并且它发布消息的效果很好。 现在我想做的是创建一个按钮,上面写着更多信息,当它被点击时,我想显示一个项目列
我目前正在尝试使用 SlackConnector 库在 C# 中开发应用程序。 SlackConnector 应用程序将接收消息并将消息发送到松弛 channel 和 DM。 (我能够使用测试 tok
给定一个松弛 channel 的名称,有没有办法检索该 channel 中所有成员的电子邮件列表?我尝试查看 slack api 文档,但找不到实现此目的所需的方法 (https://api.slac
我已经构建了一个 receives events 的应用程序. 默认情况下,范围 channels:history让它接收添加应用程序的用户的所有公共(public) channel 中的所有消息的事
我正在使用模态来收集数据。我通过以下代码打开了一个 View : view = { "type": "modal", "title": { "type": "plain
我正在使用模态来收集数据。我通过以下代码打开了一个 View : view = { "type": "modal", "title": { "type": "plain
我的问题有点复杂。它是这样的:我通过 HTTPClient 从(在我的例子中)“Slack”-API 获得答案。此数据作为 JSON 发送,因此我将其反序列化为我为此编写的合适对象(类)。到目前为止,
我正在尝试使用他们的 Web API 将 Slack 与我们的应用程序集成。我需要使用 chat.postMessage具有自定义用户名并设置 as_user = false 的端点。我可以发布消息,
我正在开发一款 Slack 应用程序,用户可以使用 Slack 的 Oauth 流程将其安装到工作区。安装和配置应用程序后,我使用 Oauth 允许用户登录并对应用程序配置进行更改。 新用户的流程使用
如何使用事件 API 检测消息是否来自在私有(private) channel (只有机器人的 DM)中与我的机器人聊天的用户? 最佳答案 检查 channel ID 中的第一个字母。如果它以 D 开
我是一名优秀的程序员,十分优秀!