wafer/mix.exs

80 lines
2.2 KiB
Elixir
Raw Normal View History

2019-12-29 17:12:36 +13:00
defmodule Wafer.MixProject do
2019-12-20 10:24:51 +13:00
use Mix.Project
@moduledoc false
2019-12-20 10:24:51 +13:00
2019-12-31 18:54:46 +13:00
@description """
Wafer is an Elixir library to make writing drivers for i2c and SPI connected
peripherals and interacting with GPIO pins easier.
"""
2023-11-24 20:20:28 +13:00
@version "1.0.3"
2019-12-31 18:54:46 +13:00
2019-12-20 10:24:51 +13:00
def project do
[
2019-12-29 17:12:36 +13:00
app: :wafer,
2019-12-31 18:54:46 +13:00
version: @version,
2019-12-20 10:24:51 +13:00
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
2019-12-31 18:54:46 +13:00
package: package(),
description: @description,
deps: deps(),
consolidate_protocols: Mix.env() != :test,
2024-02-05 15:03:57 +13:00
source_url: "https://harton.dev/james/wafer",
homepage_url: "https://harton.dev/james/wafer",
docs: [
2024-02-05 15:03:57 +13:00
source_url_pattern: "https://harton.dev/james/wafer/src/branch/main/%{path}#L%{line}",
extras: ["README.md", "CHANGELOG.md"]
]
2019-12-20 10:24:51 +13:00
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
2019-12-29 17:12:36 +13:00
mod: {Wafer.Application, []}
2019-12-20 10:24:51 +13:00
]
end
2019-12-31 18:54:46 +13:00
def package do
[
2023-01-17 11:25:39 +13:00
maintainers: ["James Harton <james@harton.nz>"],
licenses: ["HL3-FULL"],
2019-12-31 18:54:46 +13:00
links: %{
2024-02-05 15:03:57 +13:00
"Source" => "https://harton.dev/james/wafer",
"GitHub" => "https://github.com/jimsynz/wafer",
"Changelog" => "https://docs.harton.nz/james/wafer/changelog.html",
"Sponsor" => "https://github.com/sponsors/jimsynz"
},
2024-02-05 15:03:57 +13:00
source_url: "https://harton.dev/james/wafer"
2019-12-31 18:54:46 +13:00
]
end
2019-12-20 10:24:51 +13:00
# Run "mix help deps" to learn about dependencies.
defp deps do
devtest = [only: ~w[dev test]a, runtime: false]
2019-12-20 10:24:51 +13:00
[
{: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, "< 3.0.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.16", devtest},
{:ex_doc, ">= 0.0.0", devtest},
{:git_ops, "~> 2.4", devtest},
2023-11-24 15:40:26 +13:00
{:mimic, "~> 1.5", only: :test},
{:mix_audit, "~> 2.1", devtest}
2019-12-20 10:24:51 +13:00
]
end
end