首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >流星+ CodeShip +模量

流星+ CodeShip +模量
EN

Stack Overflow用户
提问于 2015-05-15 13:42:25
回答 1查看 507关注 0票数 3

有人能推荐一个很好的安装脚本来在通过测试后部署到Modulus吗?

我现在用的是:

代码语言:javascript
复制
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周围复制和粘贴的东西,我不知道我在做什么。

最后,我的测试管道是:

代码语言:javascript
复制
meteor --test

CodeShip日志的输出:

代码语言:javascript
复制
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

一旦到达客户端测试,它就会永远挂起,并且无法构建。

有什么建议吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-08-26 07:08:48

根据速度自述,您应该使用以下命令:meteor --test --release velocity:METEOR@1.1.0.3_1。我确实使用了以下安装命令使其正常工作:

代码语言:javascript
复制
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

以及这个test命令(用Meteor目录的路径替换它。在这种情况下,sanjo:jasmine是必需的,但是如果使用另一个测试器,则可能需要添加相关的包。velocity:html-reporter包为此目的过度使用,但它确实有效,控制台报告应该足够了,但我没有测试它):

代码语言:javascript
复制
cd ~/src/bitbucket.org/<path>/ && 
meteor add sanjo:jasmine velocity:html-reporter && 
meteor --test --release velocity:METEOR@1.1.0.3_1
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30261036

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档