一个 github repo 在 travis 上构建得很好,而另一个几乎完全相同的 .travis.yaml 文件没有构建,并给出错误
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
我已经看到一些关于 travis yaml 文件没有正确处理选项卡等的讨论,但我已经检查过没有选项卡,只有空格。
我注意到
config
travis 仪表板上的一行有一个正确构建的 repo 条目而没有建立的那个缺少那条线
但是,它们或多或少具有相同的 yaml 文件,所以我不明白为什么它不能以相同的方式工作。
The yaml for the repo that builds
And the one that doesn't build (some comments are removed, but that doesn't make a difference, I checked):
最佳答案
我认为您应该将文件重命名为 .travis.yml
.
有时我看到它used in a right方式但here它拼写错误。这就是它不被执行的原因。
关于r - travis-ci 构建错误 "No Rakefile found",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15953739/