-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
mix.exs
94 lines (85 loc) · 2.31 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
defmodule Snmp.MixProject do
use Mix.Project
@version "0.2.1"
@source_url "https://github.com/jeanparpaillon/elixir-snmp"
def project do
[
app: :elixir_snmp,
version: @version,
elixir: "~> 1.11",
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
description: description(),
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
dialyzer: dialyzer(),
preferred_cli_env: %{
docs: :docs,
"hex.publish": :docs,
"hex.build": :docs
}
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :mnesia, :snmp, :public_key]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:stream_data, "~> 0.5", only: [:test]},
{:ex_doc, "~> 0.23", only: [:docs], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:credo, "~> 1.4", only: [:dev, :test], runtime: false},
{:plug, "~> 1.11"},
{:jason, ">= 0.0.0"},
{:ecto, "~> 3.6"}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
maintainers: ["Jean Parpaillon"],
licenses: ["MIT"],
links: %{"GitHub" => @source_url},
files: ~w(.formatter.exs mix.exs README.md CHANGELOG.md lib)
]
end
defp description do
"SNMP tooling for elixir"
end
defp docs do
[
extras: ["README.md", "CHANGELOG.md"],
main: "readme",
skip_undefined_reference_warnings_on: ["CHANGELOG.md"],
source_ref: "v#{@version}",
source_url: @source_url,
formatters: ["html"],
groups_for_modules: [
"Agent building": [Snmp.Agent, Snmp.Agent.DSL, Snmp.Transport],
"MIBs tooling": [Snmp.Instrumentation, Snmp.Instrumentation.Generic, Snmp.Mib],
"Standard MIBs": [
Snmp.Mib.Community,
Snmp.Mib.Framework,
Snmp.Mib.Standard,
Snmp.Mib.UserBasedSm,
Snmp.Mib.Vacm
],
Misc: [Snmp.Compiler]
]
]
end
defp dialyzer do
[
plt_add_apps: [:mix],
plt_core_path: "priv/plts",
plt_file: {:no_warn, "priv/plts/dialyzer.plt"},
ignore_warnings: ".dialyzer_ignore.exs"
]
end
end