travis-ci构建错误“找不到Rakefile”

问题描述 投票:10回答:1

一个github repo在travis上构建得很好,而另一个几乎完全相同的.travis.yaml文件没有构建,并给出了错误

rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)

我已经看到一些关于travis yaml文件没有正确处理选项卡等的讨论,但我已经检查过没有选项卡,只有空格。

我注意到travis仪表板上的config行有一个正确构建的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):

r travis-ci
1个回答
10
投票

我认为你应该将文件重命名为.travis.yml

有时我看到它used in a right方式,但here它拼写错误。这就是它没有被执行的原因。

© www.soinside.com 2019 - 2024. All rights reserved.