【问题标题】:Run meteor tests with Chimp at Codeship CI在 Codeship CI 使用 Chimp 运行流星测试
【发布时间】:2016-10-26 16:48:09
【问题描述】:

我有 Meteor 项目,我想在 Codeship 使用 Chimp 运行我的测试。

我有一个问题,Meteor 项目必须在运行 Chimp 之前启动。启动 Meteor 后,它会阻止终端显示服务器 si 在 localhost:3000 就绪

通常在 localhost 我只是运行(并等待启动)Meteor。然后在另一个 bash 选项卡中运行 chimp。

在 Codeship bash 我不能做这样的事情。我尝试了一些 linux 命令 sleep、&、nohup,但我无法将它们放在一起。

设置命令

# Install node
nvm install 4.0
nvm install 0.10
node -v

# Install chimp
npm install -g chimp

# Install meteor
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

测试命令

nohup bash -c "meteor --settings=settingsRemote.json 2>&1 &" && sleep 3m; cat nohup.out
chimp --ddp=http://localhost:3000 --mocha --browser=firefox --path=tests

通过上述设置,我在流星命令中得到了这个输出。黑猩猩永远不会跑。

[[[[[ ~/src/bitbucket.org/jirikrepl/nedatluj-meteor ]]]]]

=> Started proxy.
=> Started MongoDB.
=> Started your app.

=> App running at: http://localhost:3000/



------------------------------------------------------------------------------
This command didn't output anything for 10 minutes, thus we stopped it.
Please make sure your steps regularly print to standard out or standard error.
If the error is on our end please inform us so we can help you to fix this.
------------------------------------------------------------------------------

【问题讨论】:

    标签: bash meteor codeship


    【解决方案1】:

    好的here 是解决方案。我编辑了上面的代码,所以现在可以工作了。

    【讨论】:

    • 该链接已损坏@Jirik
    猜你喜欢
    • 1970-01-01
    • 2013-03-30
    • 2016-01-01
    • 2020-07-27
    • 1970-01-01
    • 1970-01-01
    • 2017-03-28
    • 2017-03-22
    相关资源
    最近更新 更多