运行 XCode 从命令行集成
Run XCode Integration from command line
我已经设置了 os x 服务器和执行 build/test 进程的机器人。我需要 运行 这个来自命令行的机器人。
pos是否可以从命令行 运行 集成(CI 在 os x 服务器上)?
构建可以使用 xcodebuild 完成。对于测试,我不知道。
回复晚了,希望对你有帮助。
您可能知道 Xcode 服务器公开 WEB API。
因此,为了启动集成,只需发出此命令,将 YOUR_BOT_NAME 部分替换为实际的机器人名称。
curl -sk -X POST -d '{ shouldClean: false }' https://localhost:20343/api/bots/`curl -sk https://localhost:20343/api/bots | jq '.results[] | select(.name == "YOUR_BOT_NAME") | ._id' | tr -d '"'`/integrations
注意此命令使用 JQ 命令行 JSON 处理器,可通过 Homebrew 获得:
brew install jq
我已经设置了 os x 服务器和执行 build/test 进程的机器人。我需要 运行 这个来自命令行的机器人。 pos是否可以从命令行 运行 集成(CI 在 os x 服务器上)?
构建可以使用 xcodebuild 完成。对于测试,我不知道。
回复晚了,希望对你有帮助。
您可能知道 Xcode 服务器公开 WEB API。 因此,为了启动集成,只需发出此命令,将 YOUR_BOT_NAME 部分替换为实际的机器人名称。
curl -sk -X POST -d '{ shouldClean: false }' https://localhost:20343/api/bots/`curl -sk https://localhost:20343/api/bots | jq '.results[] | select(.name == "YOUR_BOT_NAME") | ._id' | tr -d '"'`/integrations
注意此命令使用 JQ 命令行 JSON 处理器,可通过 Homebrew 获得:
brew install jq