如何在 travis_ci 中配置 GCS 部署超时

How to configure GCS deploy timeout in travis_ci

我在 travis-ci 中使用部署 gcs 选项,您可以在此处查看文档 https://docs.travis-ci.com/user/deployment/gcs/。但是我的部署需要超过 10 分钟。

No output has been received in the last 10m0s, 
this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: 
https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received

但是我没有找到更改超时的选项?怎么可能?

来自https://github.com/travis-ci/dpl/issues/568#issuecomment-272465349


部署超时没有配置调整,但您可以添加一个后台进程,在部署开始之前向 STDOUT 写入一些内容。这将防止您的部署在 10 分钟后被终止。

最少的视觉违规,可以写视觉铃铛(\a):

yaml before_deploy: | function keep_alive() { while true; do echo -en "\a" sleep 5 done } keep_alive &