nerves v1.6.3 Nerves.Artifact.BuildRunner behaviour View Source

Defines the Nerves build runner behaviour

A build runner is a module that can take package source and produce artifacts.

Link to this section Summary

Link to this section Types

Specs

archive_result() :: {:ok, path :: String.t()} | {:error, reason :: term()}

Specs

build_result() :: {:ok, build_path :: String.t()} | {:error, reason :: term()}

Specs

clean_result() :: :ok | {:error, reason :: term()}

Link to this section Callbacks

Link to this callback

archive(package, toolchain, opts)

View Source

Specs

archive(package :: Nerves.Package.t(), toolchain :: atom(), opts :: term()) ::
  archive_result()
Link to this callback

build(package, toolchain, opts)

View Source

Specs

build(package :: Nerves.Package.t(), toolchain :: atom(), opts :: term()) ::
  build_result()

Specs

clean(package :: Nerves.Package.t()) :: clean_result()