how to increase no activity wait time in travis CI?

天涯浪子 提交于 2019-12-10 17:43: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

the error i am getting

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

how to fix it please teach me


回答1:


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

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



来源:https://stackoverflow.com/questions/43918874/how-to-increase-no-activity-wait-time-in-travis-ci

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!