如何访问辅助travis日志 [英] How to access secondary travis logs

查看:63
本文介绍了如何访问辅助travis日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道主要的travis构建日志可在Web上获得,并且可以在travis命令行客户端中使用 logs 命令,但是我想知道是否有办法访问在构建过程中生成的其他文件,例如引用的文件 /home/travis/.rvm/log/1391454748_rbx-2.2.4/rubygems.install.log https://travis-ci.org/rspec/rspec-its/jobs/ 18148204

I know the primary travis build logs are available on the web and with the logs command in the travis command line client, but I was wondering if there is a way to access other files generated as part of the build process, such as the file /home/travis/.rvm/log/1391454748_rbx-2.2.4/rubygems.install.log referenced in https://travis-ci.org/rspec/rspec-its/jobs/18148204

推荐答案

一旦构建完成,这些文件就会丢失。如果您想阅读它们,则应添加 cat 命令以打印出所看到的日志。

Those files are lost once the build is finished. If you want to read them, you should add a cat command to print out to the log you see.

before_script: cat /home/travis/.rvm/log/*_rbx-2.2.4/rubygems.install.log

如果install命令失败,则应覆盖 install 来安装安装失败的gem:

If the install command is failing, then you should override install to install the gem for which the installation is failing:

install: gem install XXX || cat /home/travis/.rvm/log/*_rbx-2.2.4/rubygems.install.log

这篇关于如何访问辅助travis日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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