在Travis CI中触发依赖项目的构建 [英] Triggering builds of dependent projects in Travis CI

查看:70
本文介绍了在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆