Meteor + CodeShip + Modulus [英] Meteor + CodeShip + Modulus
问题描述
谁能推荐一个好的设置脚本,在通过测试后部署到 Modulus?
Can anyone recommend a good setup script to deploy to Modulus after passing tests?
现在我正在使用:
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周围复制+粘贴的内容,但我不知道我在做什么.
Which is basically what I've managed to copy + paste around the interwebz and I have no idea what I'm doing.
最后我的测试管道是:
meteor --test
CodeShip 日志的输出:
The output from CodeShip logs:
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
一旦进入客户端测试,它就会永远挂起并且无法构建.
As soon as it gets to the client-side tests, it hangs for ever and fails to build.
有什么建议吗?
推荐答案
根据 Velocityreadme 你应该使用这个命令:meteor --test --release velocity:METEOR@1.1.0.3_1
.我确实设法使用以下设置命令使其工作:
According to the Velocity readme you should use this command: meteor --test --release velocity:METEOR@1.1.0.3_1
. I did manage to get it work using the following setup commands:
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
和这个测试命令(用流星应用程序目录的路径替换.在这种情况下sanjo:jasmine
是必需的,但如果你使用另一个测试器,你可能需要添加相关的包. velocity:html-reporter
包为此目的有点过头了,但它确实有效,控制台报告器应该足够了,但我没有测试它):
and this test command (replacing the with the path to the Meteor app directory. In this case sanjo:jasmine
is required, but if you use another tester, you might need to add the related package. The velocity:html-reporter
package is overkill for this purpose, but it does works, the console reporter should be enough, but I didn't test it):
cd ~/src/bitbucket.org/<path>/ &&
meteor add sanjo:jasmine velocity:html-reporter &&
meteor --test --release velocity:METEOR@1.1.0.3_1
这篇关于Meteor + CodeShip + Modulus的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!