我有Meteor项目,我想在Codeship上与Chimp一起进行测试。
我遇到一个问题,就是在运行Chimp之前必须启动Meteor项目。启动Meteor后,它会阻止终端显示服务器已准备好在localhost:3000
通常在localhost我只是跑(并等待开始)Meteor。然后在另一个bash选项卡中我运行黑猩猩。
在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
通过以上设置,我在meteor命令上获得了此输出。黑猩猩从不运行。
[[[[[ ~/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.
------------------------------------------------------------------------------