Nerves v1.5.1 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

Link to this type

archive_result()

View Source
archive_result() :: {:ok, path :: String.t()} | {:error, reason :: term()}
Link to this type

build_result()

View Source
build_result() :: {:ok, build_path :: String.t()} | {:error, reason :: term()}
Link to this type

clean_result()

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

Link to this section Callbacks

Link to this callback

archive(package, toolchain, opts)

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

build(package, toolchain, opts)

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