Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions mix_helpers.exs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@
require Logger

def install do
if Enum.member?([:bench, :test, :test_no_nif], Mix.env()) do
Mix.shell().info("AppSignal: Skipping agent installation in test environment")
:ok
else
do_install()
end
end

def do_install do
report = initial_report()

case verify_system_architecture(report) do
Expand Down Expand Up @@ -505,7 +514,7 @@
# Fetches the libc version number from the `ldd` command
# If `ldd` is not found it returns `nil`
defp ldd_version_output do
case @system.cmd("ldd", ["--version"], stderr_to_stdout: true) do

Check warning on line 517 in mix_helpers.exs

View workflow job for this annotation

GitHub Actions / test (1.15.x, 26.x)

FakeSystem.cmd/3 is undefined (module FakeSystem is not available or is yet to be defined)

Check warning on line 517 in mix_helpers.exs

View workflow job for this annotation

GitHub Actions / test (1.14.x, 25.x)

FakeSystem.cmd/3 is undefined (module FakeSystem is not available or is yet to be defined)
{output, _} ->
{:ok, output}
end
Expand Down Expand Up @@ -736,7 +745,7 @@

def uid do
try do
case @system.cmd("id", ["-u"]) do

Check warning on line 748 in mix_helpers.exs

View workflow job for this annotation

GitHub Actions / test (1.15.x, 26.x)

FakeSystem.cmd/2 is undefined (module FakeSystem is not available or is yet to be defined)

Check warning on line 748 in mix_helpers.exs

View workflow job for this annotation

GitHub Actions / test (1.14.x, 25.x)

FakeSystem.cmd/2 is undefined (module FakeSystem is not available or is yet to be defined)
{id, 0} ->
case Integer.parse(List.first(String.split(id, "\n"))) do
{int, _} -> int
Expand Down
Loading