-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathmix.exs
100 lines (91 loc) · 2.45 KB
/
mix.exs
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
defmodule NervesHubLink.MixProject do
use Mix.Project
@version "2.6.0"
@description "Manage your Nerves fleet by connecting it to NervesHub"
@source_url "https://github.com/nerves-hub/nerves_hub_link"
def project do
[
app: :nerves_hub_link,
deps: deps(),
description: @description,
dialyzer: dialyzer(),
docs: docs(),
elixir: "~> 1.13",
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
docs: :docs,
"hex.publish": :docs
],
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls],
version: @version
]
end
def application do
[
env: [
host: nil,
fwup_public_keys: []
],
extra_applications: [:logger, :iex, :inets, :sasl, :os_mon],
mod: {NervesHubLink.Application, []}
]
end
defp elixirc_paths(:test), do: ["test/support", "lib"]
defp elixirc_paths(_), do: ["lib"]
defp dialyzer() do
[
flags: [:missing_return, :extra_return, :error_handling, :underspecs, :unmatched_returns]
]
end
defp docs do
[
extras: ["README.md", "CHANGELOG.md"],
main: "readme",
source_ref: "v#{@version}",
source_url: @source_url,
skip_undefined_reference_warnings_on: ["CHANGELOG.md"]
]
end
defp package do
[
licenses: ["Apache-2.0"],
links: %{"GitHub" => @source_url},
files: [
"lib",
"CHANGELOG.md",
"LICENSE",
"mix.exs",
"README.md"
]
]
end
defp deps do
[
{:castore, "~> 0.1 or ~> 1.0", optional: true},
{:credo, "~> 1.2", only: :dev, runtime: false},
{:dialyxir, "~> 1.1", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.10", only: :test},
{:ex_doc, "~> 0.18", only: :docs, runtime: false},
{:extty, "~> 0.4.1"},
{:fwup, "~> 1.0"},
{:jason, "~> 1.0"},
{:mint, "~> 1.2"},
{:mox, "~> 1.0", only: :test},
{:nerves_key, "~> 1.0 or ~> 0.5", optional: true},
{:vintage_net, "~> 0.13", optional: true},
{:nerves_runtime, "~> 0.8"},
{:nerves_time, "~> 0.4"},
{:plug_crypto, "~> 2.0"},
{:plug_cowboy, "~> 2.0", only: :test},
{:slipstream, "~> 1.0 or ~> 0.8"},
{:whenwhere, "~> 0.1.1"},
{:x509, "~> 0.5"}
]
end
end