Integrity 连续应用程序存在问题
我正在尝试为我的项目建立完整性。可悲的是,我的 bash-fu 很差,所以我需要一些帮助。 在构建脚本中,我输入rake spec
。完整地返回状态 0 和输出
(在/home/rails/integrity/builds/builds/66中)
但我知道,我应该得到状态 1 和输出(从控制台手动运行后):
rails@integrity:~/integrity/builds/builds/66$ 耙子规格
(在 /home/rails/integrity/builds/builds/66 中) 耙子中止!没有这样的文件或 目录- /home/rails/integrity/builds/builds/66/config/database.yml(通过运行任务查看完整跟踪 --跟踪)
我不创建database.yml,因为我想 Integrity 显示有关它的消息?
对我来说,它看起来就像失去了管道。 脚本在这里运行: http://github.com/integrity/integrity/blob /v22/lib/integrity/builder.rb#L49 你能告诉我为什么完整性中的rake spec
返回0吗?
I'm trying to setup integrity for my project. Sadly, my bash-fu is poor so I need some help.
In build script I enter rake spec
. In integrity it returns status 0 and output
(in /home/rails/integrity/builds/builds/66)
but I know, that I should got status 1 and output (after running it manually from console):
rails@integrity:~/integrity/builds/builds/66$
rake spec
(in /home/rails/integrity/builds/builds/66)
rake aborted! No such file or
directory -
/home/rails/integrity/builds/builds/66/config/database.yml(See full trace by running task with
--trace)
I dont create database.yml, becouse I would like to Integrity show message about it?
For me it looks like it lost pipe.
Script is running here:
http://github.com/integrity/integrity/blob/v22/lib/integrity/builder.rb#L49
Could you tell why rake spec
in integrity returns 0?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要先设置database.yml,然后才能运行测试。您可以编写一个自定义构建脚本来设置它,然后运行测试。像这样:
然后将 rake ci:build 作为完整性构建脚本。基本上这个脚本会在启动测试之前复制一个database.yml模板。
You need to have database.yml set before you can run your tests. You can write a custom build script that will set it and then run the test. Something like:
And then put rake ci:build as integrity build script. Basically this script will copy a database.yml template before launching the tests.