Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Meteor 流星+;代码系统&x2B;模数_Meteor_Codeship_Modulus.io - Fatal编程技术网

Meteor 流星+;代码系统&x2B;模数

Meteor 流星+;代码系统&x2B;模数,meteor,codeship,modulus.io,Meteor,Codeship,Modulus.io,有人能推荐一个好的安装脚本在通过测试后部署到模块吗 现在我正在使用: nvm install 0.10.28 nvm use 0.10.28 curl -o meteor_install_script.sh https://install.meteor.com/ chmod +x meteor_install_script.sh sed -i "s/type sudo >\/dev\/null 2>&1/\ false /g" meteor_install_script.sh

有人能推荐一个好的安装脚本在通过测试后部署到模块吗

现在我正在使用:

nvm install 0.10.28
nvm use 0.10.28
curl -o meteor_install_script.sh https://install.meteor.com/
chmod +x meteor_install_script.sh
sed -i "s/type sudo >\/dev\/null 2>&1/\ false /g" meteor_install_script.sh
./meteor_install_script.sh
export PATH=$PATH:~/.meteor/
meteor --version
这基本上就是我在interwebz上复制粘贴的东西,我不知道我在做什么

最后,我的测试管道是:

meteor --test
代码传递日志的输出:

I20150515-13:34:16.005(0)? [velocity] mocha is starting a mirror at http://localhost:44995/.
I20150515-13:34:16.006(0)? [velocity] This takes a few minutes the first time.
I20150515-13:34:16.006(0)? [velocity] You can see the mirror logs at: tail -f /home/rof/src/bitbucket.org/atlasshrugs/garden/.meteor/local/log/mocha.log
PASSED mocha : Server initialization => should have a Meteor version defined
一旦进入客户端测试,它就永远挂起,无法构建

有什么建议吗?

根据建议,您应该使用以下命令:
meteor--test--release velocity:METEOR@1.1.0.3_1
。我使用以下设置命令成功地使其工作:

nvm install 0.10.30
nvm use 0.10.30
curl -o meteor_install_script.sh https://install.meteor.com/
chmod +x meteor_install_script.sh
sed -i "s/type sudo >\/dev\/null 2>&1/\ false 
/g"meteor_install_script.sh
./meteor_install_script.sh
export PATH=$PATH:~/.meteor/
meteor --version
这个测试命令(将替换为Meteor应用程序目录的路径。在这种情况下,
sanjo:jasmine
是必需的,但是如果您使用其他测试仪,您可能需要添加相关的软件包。
velocity:html reporter
软件包在这方面做得太多了,但它确实有效,console reporter应该足够了,但我没有测试它):

cd~/src/bitbucket.org//&
meteor add sanjo:jasmine velocity:html reporter&&
流星-测试-释放速度:METEOR@1.1.0.3_1

你能告诉我们你希望你的工作流程是什么吗?看起来你正在安装Meteor,然后运行测试…就是这样。这就是我所做的,因为我试图自学。我不知道我在做什么!我想我的目标是,每次我推到我的Bitbucket,我都希望Codeship运行测试s、 如果他们通过了,部署到module。老实说,这是一个伟大的目标!mocha正在完成。你在客户端测试中使用了什么?谢谢!我也在使用mocha进行客户端测试。我也注意到一条错误消息:流错误网络错误:ws://localhost:3000/websocket:connect-ECONNREFUSE。这里一定有连接,client测试永远挂起,构建失败。我尝试按照在上的建议添加浏览器策略(并将该代码块添加到Meteor.startup),但还没有完成。我不想说这是不可能的:)也许codeship的某个人会站出来帮忙。看起来你可以在tweet上发@codeship并询问有关mocha浏览器测试的信息。我也看到了这个更新。该是他们发布CI修复程序的时候了!
cd ~/src/bitbucket.org/<path>/ && 
meteor add sanjo:jasmine velocity:html-reporter && 
meteor --test --release velocity:METEOR@1.1.0.3_1