本文介绍了如何在没有超时的情况下在 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 上安装某些东西?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!