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

时间:2017-01-13 14:19:51

标签: google-cloud-storage travis-ci

我在travis-ci中使用deploy 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

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

1 个答案:

答案 0 :(得分:1)

来自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 &