运行“bundle exec rake”时travis.ci继续失败

我正在尝试使用Travis.ci进行自动化测试。 但是,在尝试执行bundle exec rake时,构建仍然会失败。 这就是我所看到的……

 $ bundle exec rake rake aborted! Don't know how to build task 'default' /home/travis/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in `eval' /home/travis/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in `' (See full trace by running task with --trace) The command "bundle exec rake" exited with 1. Done. Your build exited with 1. 

我的unit testing位于主目录的test文件夹中,名为test_np_search.rb。 我知道我不知何故应该将travis指向这个位置以运行unit testing,但我不知道如何做到这一点。

我已经多次阅读过travis.ci上的ruby相关文档并且已经在线查看了教程,但是我无法让它工作。

有问题的整个github存储库在这里: https : //github.com/IsmailM/NeuroPeptideSearch

Travis.CI链接在这里: https ://travis-ci.org/IsmailM/NeuroPeptideSearch

我一直试图让这个分类一个多星期,现在取得了任何成功,所以如果有人能帮助我,我将非常感激。

多谢

如果你想在travis上执行bundle exec rake ,你必须确保它在你的本地机器上运行!

如果你在没有提供任务名称的情况下调用rake ,它将假定您要运行default-task。

如果你想将你的minitest testsuite作为默认任务运行,你必须这样做:

 require "rake/testtask" Rake::TestTask.new do |t| t.pattern = "test/**/*_test.rb" end task default: :test