fix: add inets and ssl to extra_applications in test env

Ref https://github.com/voltone/x509/issues/63 and https://github.com/voltone/x509/pull/64/files
Issue: https://github.com/phoenixframework/phoenix/issues/5502

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2023-08-18 11:22:13 +02:00
parent 7cc9a37c78
commit af46bea7f7
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

10
mix.exs
View file

@ -80,10 +80,18 @@ defmodule Mobilizon.Mixfile do
def application do def application do
[ [
mod: {Mobilizon, []}, mod: {Mobilizon, []},
extra_applications: [:logger, :runtime_tools, :guardian, :geolix, :crypto, :cachex] extra_applications: extra_applications(Mix.env())
] ]
end end
defp extra_applications(:test) do
extra_applications(:prod) ++ [:inets, :ssl]
end
defp extra_applications(_env) do
[:logger, :runtime_tools, :guardian, :geolix, :crypto, :cachex]
end
def copy_files(%{path: target_path} = release) do def copy_files(%{path: target_path} = release) do
File.cp_r!("./rel/overlays", target_path) File.cp_r!("./rel/overlays", target_path)
release release