在Codeship CI与Chimp一起运行流星测试



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

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

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

在Codeship狂欢节上,我不能做这样的事。我尝试了一些linux命令sleep;,不,但我不能把它放在一起。

Setup命令

# 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.
------------------------------------------------------------------------------

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

最新更新