Travis-CI Node.js 默认使用 Ruby 构建?未找到 RakeFile [英] Travis-CI Node.js Defaulting to Ruby Build? No RakeFile found

查看:51
本文介绍了Travis-CI Node.js 默认使用 Ruby 构建?未找到 RakeFile的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发布此内容作为对遇到相同问题的其他人的参考.

I'm posting this as a reference to others who have had the same problem.

$ rake
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
/home/travis/.rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:in `eval'
/home/travis/.rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:in `<main>'
(See full trace by running task with --trace)
The command "rake" exited with 1.

以上是在 Travis-CI 上构建 Node.JS 项目时的输出..travis.yml 文件有效:

The above is output when building a Node.JS project on Travis-CI. The .travis.yml file is valid:

language: node_js
node_js:
  - "0.12"

推荐答案

通过删除版本控制上的引用来修复 .travis.yml,如下所示:

Fix the .travis.yml by removing the quotations on the versioning, as follows:

language: node_js
node_js:
  - 0.12

当前显示的 Travis Node.JS 文档带有引号.这似乎是不正确的.

The Travis Node.JS docs currently display with quotation marks. This appears to be incorrect.

http://docs.travis-ci.com/user/languages/javascript-with-nodejs/

如果其他人可以测试验证,请在下面评论.

If others can test to verify, please comment below.

这可能是一个临时问题,因为还有其他示例 .travis.yml 文件在版本号上带有引号(如果它嵌套在包含中).

It's likely a temporary issue, as there are other examples of .travis.yml files with quotes on the version number (if it's nested in an include).

这篇关于Travis-CI Node.js 默认使用 Ruby 构建?未找到 RakeFile的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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