Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismccord committed Aug 2, 2023
1 parent bb9e406 commit b52e917
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
18 changes: 10 additions & 8 deletions lib/mix/tasks/phx.gen.release.ex
Original file line number Diff line number Diff line change
Expand Up @@ -232,17 +232,19 @@ defmodule Mix.Tasks.Phx.Gen.Release do
end
end

defp fetch_body!(url) do
url = String.to_charlist(url)
Logger.debug("Fetching latest image information from #{url}")

defp ensure_app!(app) do
if function_exported?(Mix, :ensure_application!, 1) do
Mix.ensure_application!(:inets)
Mix.ensure_application!(:ssl)
apply(Mix, :ensure_application!, [app])
else
{:ok, _} = Application.ensure_all_started(:inets)
{:ok, _} = Application.ensure_all_started(:ssl)
{:ok, _} = Application.ensure_all_started(app)
end
end

defp fetch_body!(url) do
url = String.to_charlist(url)
Logger.debug("Fetching latest image information from #{url}")
ensure_app!(:inets)
ensure_app!(:ssl)

if proxy = System.get_env("HTTP_PROXY") || System.get_env("http_proxy") do
Logger.debug("Using HTTP_PROXY: #{proxy}")
Expand Down
2 changes: 1 addition & 1 deletion test/phoenix/integration/endpoint_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Code.require_file "../../support/http_client.exs", __DIR__
Code.require_file "../../support/endpoint_helper.exs", __DIR__

defmodule Phoenix.Integration.EndpointTest do
use ExUnit.Case
use ExUnit.Case, async: false
import ExUnit.CaptureLog

import Phoenix.Integration.EndpointHelper
Expand Down
2 changes: 1 addition & 1 deletion test/phoenix/integration/long_poll_channels_test.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Code.require_file("../../support/http_client.exs", __DIR__)

defmodule Phoenix.Integration.LongPollChannelsTest do
use ExUnit.Case
use ExUnit.Case, async: false
import ExUnit.CaptureLog

alias Phoenix.Integration.HTTPClient
Expand Down

0 comments on commit b52e917

Please sign in to comment.