mix tuist.compile (tuist_ex v0.10.1)

Copy Markdown

Runs mix compile with the Tuist analytics compile reporter attached and submits the resulting build to your Tuist dashboard.

mix tuist.compile [--url URL] [--project ACCOUNT/PROJECT] [ARGS...]

Every other argument is forwarded to mix compile as is, so the task can stand in for it. Alias it in your mix.exs and every compile reports to Tuist, including the ones mix test or mix phx.server trigger:

def project do
  [aliases: [compile: "tuist.compile"]]
end

The project handle, URL, and authentication follow the same precedence as mix tuist.test and mix tuist.login.

A submission failure never changes the exit code of mix compile; set TUIST_DEBUG=1 to surface the reason on standard error.

Summary

Functions

Callback implementation for Mix.Task.run/1.

Splits the task's own options from the arguments meant for mix compile. A -- separator is accepted for compatibility and dropped.

Functions

run(args)

Callback implementation for Mix.Task.run/1.

split_args(args)

Splits the task's own options from the arguments meant for mix compile. A -- separator is accepted for compatibility and dropped.