Travis-CI Node.js默认使用Ruby构建吗?找不到RakeFile

Dev*_*ics 5 node.js travis-ci

我将其发布为其他遇到相同问题的人的参考。

$ 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.
Run Code Online (Sandbox Code Playgroud)

在Travis-CI上构建Node.JS项目时,将输出以上内容。.travis.yml文件有效:

language: node_js
node_js:
  - "0.12"
Run Code Online (Sandbox Code Playgroud)

Dev*_*ics 7

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

language: node_js
node_js:
  - 0.12
Run Code Online (Sandbox Code Playgroud)

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

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

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

编辑:这可能是一个临时性的问题,因为还有.travis.yml文件的其他示例,其中版本号带有引号(如果嵌套在include中)。