From af46bea7f730f4479bb31518a9fa53de7302049a Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Fri, 18 Aug 2023 11:22:13 +0200 Subject: [PATCH] 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 --- mix.exs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index a87f2084b..f2a45055c 100644 --- a/mix.exs +++ b/mix.exs @@ -80,10 +80,18 @@ defmodule Mobilizon.Mixfile do def application do [ mod: {Mobilizon, []}, - extra_applications: [:logger, :runtime_tools, :guardian, :geolix, :crypto, :cachex] + extra_applications: extra_applications(Mix.env()) ] 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 File.cp_r!("./rel/overlays", target_path) release