forked from HCA-Healthcare/elixir-mllp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
81 lines (73 loc) · 2.05 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
defmodule MLLP.MixProject do
use Mix.Project
def project do
[
app: :mllp,
version: String.trim(File.read!("./VERSION")),
elixir: "~> 1.7",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
elixirc_paths: elixirc_paths(Mix.env()),
dialyzer: dialyzer_opts(),
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
test_coverage: [tool: ExCoveralls],
package: package(),
docs: docs()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {MLLP.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:telemetry, "~> 1.0"},
{:ranch, "~> 1.8.0"},
{:elixir_hl7, "~> 0.6.0"},
{:backoff, "~> 1.1.6"},
{:ex_doc, "~> 0.24.2", only: :dev, runtime: false},
{:dialyxir, "~> 1.1.0", only: [:dev, :test], runtime: false},
{:mix_test_watch, "~> 1.0.2", only: :dev, runtime: false},
{:mox, "~> 1.0.0", only: :test},
{:excoveralls, "~> 0.14.4", only: :test, runtime: false}
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp dialyzer_opts do
[
remove_defaults: [:unknown],
plt_core_path: "priv/plts",
flags: [:unmatched_returns, :unknown],
plt_file: {:no_warn, "priv/plts/mllp.plt"}
]
end
defp description() do
"An Elixir library for transporting HL7 messages via MLLP (Minimal Lower Layer Protocol)"
end
defp package() do
[
files: ~w(lib .formatter.exs mix.exs README* LICENSE* VERSION),
licenses: ["Apache-2.0"],
links: %{"GitHub" => "https://github.com/HCA-Healthcare/elixir-mllp"}
]
end
defp docs() do
[
# The main page in the docs
main: "readme",
extras: ["README.md"]
]
end
end