我有一个Rails项目设置与目录结构是这样的:特拉维斯CI使用Rails不是在根目录
研究/ my_rails_app
与研究的根目录下有一些辅助脚本和其他东西,我希望包含在版本控制下,但不是Rails应用程序本身的一部分。我希望通过Travis CI获得CI,并且该项目托管在Github上。我是Travis CI的新手,所以如果这是一个愚蠢的问题......请耐心等待。我.travis.yml文件如下:
language: ruby
rvm:
- 1.9.3
script: bundle rake rspec twitter_analysis/spec
services:
-mongodb
before_script:
- psql -c 'create database test-postgres_production;' -U test-postgres
gemfile:
- /twitter_analysis/Gemfile
当特拉维斯尝试构建的错误信息是:
The command "psql -c 'create database test-postgres_production;' -U test-postgres" failed and exited with 2 during before_script.
另一个原因是:
-mongodb: unrecognized service
而且
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
我应该如何解决这个问题?
似乎有一些关于我的应用程序结构布局的困惑。我的应用程序是这样的:research/twitter_analysis /然后.travis yaml文件位于研究目录中!谢谢! – noname