如何增加travis CI中的无活动等待时间? [英] how to increase no activity wait time in travis CI?

查看:75
本文介绍了如何增加travis CI中的无活动等待时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为bash编写的测试(在我的计算机上通过,测试运行大约20-30分钟),我需要增加travis CI的超时时间,这样我才能成功构建我尝试通过添加travis_wait 30来更改超时,但是我遇到了错误

my test written for bash (which passes on my machine, test runs about 20-30 min) and I need to increase timeout for travis CI so that I can have successful build i have tried changing timeout by adding travis_wait 30 but i am getting error

sudo: required

arch:
  repos:
    - archlinuxfr=http://repo.archlinux.fr/$arch
  packages:
    # pacman packages
    - yaourt
    - archiso
  script:
    - ./build-repo
    - travis_wait 30 sudo ./build.sh -v

我遇到的错误

script:
  - "curl -s https://raw.githubusercontent.com/xeon-zolt/arch-travis/master/arch-travis.sh | bash"
travis_wait 30 sudo ./build.sh -v
/bin/bash: travis_wait: command not found

如何解决它,请教我

推荐答案

script:
- "travis_wait 30 sleep 1800 &"
- curl -s https://raw.githubusercontent.com/xeon-zolt/arch-travis/master/arch-travis.sh | bash

在arch chroot内travis_wait函数不起作用,如果尝试导出它也会产生错误,最好的方法是在chroot部分使用命令,一切都会在其中发生

inside arch chroot the travis_wait function do not work and if trying to export it it also gives error the best way is to use the command on the chroot part inside which everything takes place

这篇关于如何增加travis CI中的无活动等待时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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