Github 为什么在向文件添加架构的请求中会出现Travis CI错误?

Github 为什么在向文件添加架构的请求中会出现Travis CI错误?,github,travis-ci,pull-request,Github,Travis Ci,Pull Request,我是Github的新手。我通常不会编程,但我正在尝试为这里的谷歌代码做一些事情。我在Github上提交了一个对xsf/xeps进行了一些更改的文档,但是我得到了一个。带有TCI的日志结尾如下所示: unable to parse xep-0363.xml make: *** [build/xep-0363.html] Error 6 The command "make all" exited with 2. 2.88s$ echo "lint,$(xmllint --nonet --noout

我是Github的新手。我通常不会编程,但我正在尝试为这里的谷歌代码做一些事情。我在Github上提交了一个对xsf/xeps进行了一些更改的文档,但是我得到了一个。带有TCI的日志结尾如下所示:

unable to parse xep-0363.xml
make: *** [build/xep-0363.html] Error 6
The command "make all" exited with 2.
2.88s$ echo "lint,$(xmllint --nonet --noout --noent --loaddtd --valid *.xml 2>&1 | wc -l)" | ./git-ratchet check -v
INFO: 2016/12/18 20:33:55 check.go:12: Parsing measures from stdin
INFO: 2016/12/18 20:33:58 check.go:14: Finished parsing measures from stdin
INFO: 2016/12/18 20:33:58 check.go:15: [{lint 4279 4279}]
INFO: 2016/12/18 20:33:58 check.go:21: Reading measures stored in git
INFO: 2016/12/18 20:33:58 git.go:14: git --no-pager log --notes=git-ratchet-1-master --pretty=format:'%H,%ae,%at,"%N",' HEAD
INFO: 2016/12/18 20:33:58 check.go:50: Checking passed measure against stored value
INFO: 2016/12/18 20:33:58 git.go:14: git --no-pager log --notes=git-ratchet-excuse-1-master --pretty=format:'%N' 8930133cb12cef58730b70ca2abac6523b19b6a7^1..HEAD
INFO: 2016/12/18 20:33:58 reader.go:169: Total excuses []
INFO: 2016/12/18 20:33:58 reader.go:183: Checking measures: lint lint
ERROR: 2016/12/18 20:33:58 reader.go:209: Measure rising: lint, delta 3 (0.07015902712815715 percents)
FATAL: 2016/12/18 20:33:58 check.go:63: One or more metrics currently failing.
The command "echo "lint,$(xmllint --nonet --noout --noent --loaddtd --valid *.xml 2>&1 | wc -l)" | ./git-ratchet check -v" exited with 50.
Done. Your build exited with 1.
命令“make all”以2退出。
命令“echo”lint,$(xmllint--nonet--noout--noent--loaddtd--valid*.xml 2>&1 | wc-l);/git棘轮检查-v”以50退出。行为红色

这是怎么回事

好的,我编辑这篇文章是想补充一点,我已经尝试了@melpomene在下面的答案中所建议的方法。然而,我已经尝试删除该行4次,然后在之后重新挤压提交,它一直在重新出现。如何修复此问题?

根据:

{
“插件”:{
“apt”:{
“包”:[
“xsltproc”,
“libxml2 utils”
]
}
},
“安装前”:[
“wget-O git棘轮https://github.com/iangrunert/git-ratchet/releases/download/v0.3.1/linux_amd64_git-ratchet",
“chmod+x吉特棘轮”,
“git fetchhttps://github.com/xsf/xeps.git refs/notes/*:refs/notes/*”
],
“脚本”:[
“创造一切”,
“echo \“lint,$(xmllint--nonet--noout--noent--loaddtd--valid*.xml 2>&1 | wc-l)\”。/git棘轮检查-v”
],
“语言”:“ruby”,
“集团”:“稳定”,
“dist”:“精确”,
“操作系统”:“linux”
}
。。。这直接来自:

插件:
恰当的:
包装:
-xsltproc
-libxml2-utils
安装前:
-wget-O吉特棘轮https://github.com/iangrunert/git-ratchet/releases/download/v0.3.1/linux_amd64_git-ratchet
-chmod+x吉特棘轮
-git获取https://github.com/xsf/xeps.git 参考文献/注释/*:参考文献/注释/*
脚本:
-全部
-echo“lint,$(xmllint--nonet--noout--noent--loaddtd--valid*.xml2>&1 | wc-l);/git棘轮检查-v
有人通过设置
脚本
键进行了修改

script
的值要么是单个shell命令,要么是travis要执行的shell命令列表。它们都在运行,但如果其中任何一个失败(通过返回非零退出状态),整个构建将被视为失败

红线来自Travis,告诉您哪个命令失败,它的退出状态是什么

至于这些命令的实际作用以及错误的含义,这取决于项目。我不熟悉这一点,但故障前的最后几行输出是:

xep-0363.xml:249: parser error : XML declaration allowed only at the start of the document    
 <?xml version='1.0' encoding='UTF-8'?>    
      ^    
xep-0363.xml:249: parser error : XML declaration allowed only at the start of the document    
 <?xml version='1.0' encoding='UTF-8'?>    
      ^    
unable to parse xep-0363.xml    
make: *** [build/xep-0363.html] Error 6
xep-0363.xml:249:解析器错误:仅在文档开头允许xml声明
^    
xep-0363.xml:249:解析器错误:仅允许在文档开头声明xml
^    
无法分析xep-0363.xml
make:**[build/xep-0363.html]错误6

确实在文件的中间引入了一个<代码> <代码>行,这可能是破坏构建的原因。

“我在问这个之前搜索过”你发现了什么?@代码徒弟什么也没有。否则我就不会问了,让我们来吧。