Dun*_*eod 16 continuous-integration scipy travis-ci
我正在尝试在travis-ci.org上测试一个包构建,但是我遇到了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('\r\n', '\n'), __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
Run Code Online (Sandbox Code Playgroud)
(从最近的构建日志中提取).
如何在没有超时的情况下在Travis上构建scipy> = 0.11?
小智 18
解决方案很简单.只需在安装命令前加上travis_wait前缀即可.有关详细信息,请访问https://docs.travis-ci.com/user/common-build-problems.
Fer*_*ndo 11
Travis上的每个命令的默认超时为10分钟,当您仅使用travis_wait功能时,超时为20分钟.如果你的构建需要等待超过20分钟,你可以通过几分钟来运行travis_wait,例如:
$ travis_wait 30 pip install scipy
Run Code Online (Sandbox Code Playgroud)
这是Travis中没有记载的功能,但是来自Travis的Hiro Asari在github问题上提出了这个功能.
| 归档时间: |
|
| 查看次数: |
3485 次 |
| 最近记录: |