bivouac_nerves/mix.exs
Renovate Bot 99ed34ecc0
Some checks failed
continuous-integration/drone/pr Build is failing
renovate/artifacts Artifact file update failure
continuous-integration/drone/push Build is passing
chore(deps): update dependency ring_logger to ~> 0.11.0
2023-10-28 17:22:07 +13:00

82 lines
2.4 KiB
Elixir

defmodule BivouacNerves.MixProject do
use Mix.Project
@app :bivouac_nerves
@version "0.1.0"
@all_targets [:rpi4, :x86_64]
def project do
[
app: @app,
version: @version,
elixir: "~> 1.11",
archives: [nerves_bootstrap: "~> 1.11"],
start_permanent: Mix.env() == :prod,
deps: deps(),
releases: [{@app, release()}],
preferred_cli_target: [run: :host, test: :host]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
mod: {BivouacNerves.Application, []},
extra_applications: [:logger, :runtime_tools]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
test_opts = [only: ~w[dev test]a, runtime: false, targets: :host]
[
# Dependencies for all targets
# {:nerves, "~> 1.10", runtime: false},
{:nerves, github: "jimsynz/nerves", branch: "add-gitea-artifacts", override: true},
{:shoehorn, "~> 0.9.1"},
{:ring_logger, "~> 0.11.0"},
{:toolshed, "~> 0.3.0"},
# Allow Nerves.Runtime on host to support development, testing and CI.
# See config/host.exs for usage.
{:nerves_runtime, "~> 0.13.0"},
# Dependencies for all targets except :host
{:nerves_pack, "~> 0.7.0", targets: @all_targets},
# Dependencies for specific targets
{:nerves_system_rpi4, "~> 1.19", runtime: false, targets: :rpi4},
# {:nerves_system_x86_64, "~> 1.19", runtime: false, targets: :x86_64},
{:bivouac_system_x86_64,
git: "https://code.harton.nz/bivouac/bivouac_system_x86_64",
runtime: false,
targets: :x86_64,
tag: "v0.1.3"},
# Dev/test deps
{:credo, "~> 1.7", test_opts},
{:dialyxir, "~> 1.3", test_opts},
{:doctor, "~> 0.21", test_opts},
{:earmark, ">= 0.0.0", test_opts},
{:ex_check, "~> 0.15", test_opts},
{:ex_doc, ">= 0.0.0", test_opts},
{:faker, "~> 0.17", test_opts},
{:git_ops, "~> 2.6", test_opts},
{:mix_audit, "~> 2.1", test_opts}
]
end
def release do
[
overwrite: true,
# Erlang distribution is not started automatically.
# See https://hexdocs.pm/nerves_pack/readme.html#erlang-distribution
cookie: "#{@app}_cookie",
include_erts: &Nerves.Release.erts/0,
steps: [&Nerves.Release.init/1, :assemble],
strip_beams: Mix.env() == :prod or [keep: ["Docs"]]
]
end
end