如何在没有超时的情况下在 Travis CI 上安装一些东西? [英] How can I install something on Travis CI without a timeout?

查看:32
本文介绍了如何在没有超时的情况下在 Travis CI 上安装一些东西?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 travis-ci.org 上测试一个包构建,但我遇到了 pip install scipy 超时:

I am trying to test a package build on travis-ci.org, but am coming up against a timeout with pip install scipy:

Installing collected packages: scipy
  Running setup.py install for scipy
    Running command /home/travis/virtualenv/python2.6.9/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-Fn2gmJ/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('
', '
'), __file__, 'exec'))" install --record /tmp/pip-hWDx9L-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/travis/virtualenv/python2.6.9/include/site/python2.6


No output has been received in the last 10 minutes, this potentially indicates a stalled build or something wrong with the build itself.

The build has been terminated

(摘自最近的构建日志).

如何在 Travis 上构建 scipy >= 0.11 而不会超时?

How can I build scipy >= 0.11 on Travis without a timeout?

推荐答案

解决方案很简单.只需在安装命令前加上 travis_wait.更多详细信息可在 https://docs.travis-ci.com/user/common-build-problems.

The solution is straightforward. Just prefix the installation command with travis_wait. More details are available at https://docs.travis-ci.com/user/common-build-problems.

这篇关于如何在没有超时的情况下在 Travis CI 上安装一些东西?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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