wafer/mix.exs
Renovate Bot 7e049b2463
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
chore(deps): update dependency circuits_gpio to v2
2024-01-12 04:13:48 +13:00

77 lines
2.1 KiB
Elixir

defmodule Wafer.MixProject do
use Mix.Project
@moduledoc false
@description """
Wafer is an Elixir library to make writing drivers for i2c and SPI connected
peripherals and interacting with GPIO pins easier.
"""
@version "1.0.3"
def project do
[
app: :wafer,
version: @version,
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
package: package(),
description: @description,
deps: deps(),
consolidate_protocols: Mix.env() != :test,
source_url: "https://code.harton.nz/james/wafer",
homepage_url: "https://code.harton.nz/james/wafer",
docs: [
source_url_pattern: "https://code.harton.nz/james/wafer/src/branch/main/%{path}#L%{line}",
extras: ["README.md"]
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {Wafer.Application, []}
]
end
def package do
[
maintainers: ["James Harton <james@harton.nz>"],
licenses: ["HL3-FULL"],
links: %{
"Source" => "https://code.harton.nz/james/smokestack",
"Gitlab Mirror" => "https://gitlab.com/jimsy/wafer"
},
source_url: "https://code.harton.nz/james/smokestack"
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
devtest = [only: ~w[dev test]a, runtime: false]
[
{:circuits_gpio, "~> 2.0", optional: true},
if System.get_env("CI_I2C_1_X") == "true" do
{:circuits_i2c, "~> 2.0", optional: true}
else
{:circuits_i2c, "~> 2.0 or ~> 1.0", optional: true}
end,
{:circuits_spi, "~> 2.0 or ~> 1.3", optional: true},
{:elixir_ale, "~> 1.2", optional: true},
# Dev/test
{:credo, "~> 1.6", devtest},
{:dialyxir, "~> 1.4", devtest},
{:doctor, "~> 0.21", devtest},
{:earmark, "~> 1.4", devtest},
{:ex_check, "~> 0.15", devtest},
{:ex_doc, ">= 0.0.0", devtest},
{:git_ops, "~> 2.4", devtest},
{:mimic, "~> 1.5", only: :test},
{:mix_audit, "~> 2.1", devtest}
]
end
end