Elixir混合自动确认 [英] Elixir mix auto acknowledge
本文介绍了Elixir混合自动确认的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
日志摘录:
<$ p
我想在Travis-CI上运行我的Phoenix应用程序的测试。 $ p> $ MIX_ENV = test mix do deps.get,compile,test
找不到需要构建依赖关系的十六进制:phoenix
我应该安装十六进制吗? [Yn]
当涉及到获取和安装依赖关系时,它会询问是否应该安装六角
。我想知道如果我可以传递一个 - 是
选项来混合,这样它就不会问,但只是安装?
解决方案
与任何unix命令一样,您可以将 yes
输入到mix命令中:
是| MIX_ENV = test mix do deps.get,compile,test
I want to run tests of my Phoenix app on Travis-CI.
Log excerpt:
$ MIX_ENV=test mix do deps.get, compile, test
Could not find hex, which is needed to build dependency :phoenix
Shall I install hex? [Yn]
When it comes to fetching and installing dependencies, it asks if it should install hex
. I was wondering if I can pass a --yes
option to mix so that it doesn't ask but just installs?
解决方案
As with any unix command, you could pipe yes
into the mix command:
yes | MIX_ENV=test mix do deps.get, compile, test
这篇关于Elixir混合自动确认的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文