-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
77 lines (69 loc) · 2.09 KB
/
mix.exs
File metadata and controls
77 lines (69 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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.1.1"
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://harton.dev/james/wafer",
homepage_url: "https://harton.dev/james/wafer",
docs: [
source_url_pattern: "https://harton.dev/james/wafer/src/branch/main/%{path}#L%{line}",
extras: ["README.md", "CHANGELOG.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://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"
},
source_url: "https://harton.dev/james/wafer"
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
devtest = [only: ~w[dev test]a, runtime: false]
[
{:circuits_gpio, "< 3.0.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, "< 3.0.0", optional: true},
# Dev/test
{:credo, "~> 1.6", devtest},
{:dialyxir, "~> 1.4", devtest},
{:doctor, "~> 0.22", devtest},
{:ex_check, "~> 0.16", devtest},
{:ex_doc, ">= 0.0.0", devtest},
{:git_ops, "~> 2.4", devtest},
{:mimic, "~> 2.0", only: :test},
{:mix_audit, "~> 2.1", devtest}
]
end
end