-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
64 lines (58 loc) · 1.63 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
defmodule BGP.MixProject do
use Mix.Project
def project do
[
app: :bgp,
version: "0.1.0",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: dialyzer(),
docs: docs()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications:
[:logger, :ssl] ++ if(Mix.env() == :dev, do: [:observer, :runtime_tools, :wx], else: []),
mod: {BGP.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:credo, "~> 1.0", only: :dev, runtime: false},
{:dialyxir, "~> 1.0", only: :dev, runtime: false},
{:ex_doc, "~> 0.26", only: :dev, runtime: false},
{:ip, "~> 2.0"},
{:nimble_options, "~> 1.0"},
{:telemetry, "~> 1.0"},
{:thousand_island, "~> 1.0"}
]
end
defp dialyzer do
[plt_add_apps: [:mix]]
end
defp docs() do
[
before_closing_body_tag: fn
:html ->
"""
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
<script>mermaid.initialize({startOnLoad: true})</script>
"""
_ ->
""
end,
name: "BGP",
groups_for_modules: [
"Message Types": [~r/^BGP\.Message\.(KEEPALIVE|NOTIFICATION|OPEN|ROUTEREFRESH|UPDATE)$/],
"OPEN Capabilities": [~r/^BGP\.Message\.OPEN\.Capabilities.*/],
"UPDATE Attributes": [~r/^BGP\.Message\.UPDATE\.Attribute.*/],
Message: [~r/^BGP\.Message$/, ~r/^BGP\.Message\.[A-Za-z]+$/],
Session: [~r/^BGP\.Server\.Session.*$/]
]
]
end
end