在 Travis CI 中触发依赖项目的构建 [英] Triggering builds of dependent projects in Travis CI
问题描述
我们在一个存储库中拥有单页 JavaScript 应用程序,在另一个存储库中拥有后端服务器.有什么方法可以让后端服务器上的传递构建触发单页应用程序的构建?
We have our single page javascript app in one repository and our backend server in another. Is there any way for a passing build on the backend server to trigger a build of the single page app?
我们不想将它们合并到一个存储库中,但我们确实希望确保对其中一个的更改不会破坏另一个.
We don't want to combine them into a single repository, but we do want to make sure that changes to one don't break the other.
推荐答案
是的,可以在第一个成功后触发另一个 Travis 作业.您可以使用 trigger-travis.sh
脚本.
Yes, it is possible to trigger another Travis job after a first one succeeds. You can use the trigger-travis.sh
script.
脚本的文档告诉如何使用它——设置一个环境变量和在您的 .travis.yml
文件中添加几行.
The script's documentation tells how to use it -- set an environment variable and add a few lines to your .travis.yml
file.
这篇关于在 Travis CI 中触发依赖项目的构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!