如何获取Travis构建期间生成的日志文件

如何获取Travis构建期间生成的日志文件

本文介绍了如何获取Travis构建期间生成的日志文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Travis版本,但该版本一直失败,并且我试图获取下面的env文件中提到的 .env 文件。我尝试将 after_failure: cat /Users/travis/.opam/system/build/topkg.0.9.0/topkg-19768-81a3ce.env 放入yml,但是它什么也没做。我将如何获取该文件?这也在 before_install 步骤中。

I have a Travis build that keeps failing, and I'm trying to get the .env file mentioned in the env-file below. I tried putting after_failure: "cat /Users/travis/.opam/system/build/topkg.0.9.0/topkg-19768-81a3ce.env" in the yml, but it didn't do anything. How would I go about getting this file? This is also during a before_install step.

#=== ERROR while installing topkg.0.9.0 =======================================#
# opam-version 1.2.2
# os           darwin
# command      ocaml pkg/pkg.ml build --pkg-name topkg --dev-pkg false
# path         /Users/travis/.opam/system/build/topkg.0.9.0
# compiler     system (4.05.0)
# exit-code    2
# env-file     /Users/travis/.opam/system/build/topkg.0.9.0/topkg-20472-81a3ce.env
# stdout-file  /Users/travis/.opam/system/build/topkg.0.9.0/topkg-20472-81a3ce.out
# stderr-file  /Users/travis/.opam/system/build/topkg.0.9.0/topkg-20472-81a3ce.err
### stdout ###
# Cannot find file topfind.
### stderr ###
# Unknown directive 'require'.


推荐答案

我为此寻求了特拉维斯的支持,他们告诉我认为 before_install 步骤中的任何错误都不会将日志的内容生成到Travis构建日志中。

I reached out to Travis support on this and they told me that any errors during the before_install step will not generate the contents of a log into the Travis build log.

这篇关于如何获取Travis构建期间生成的日志文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-07 08:17