forked from HCA-Healthcare/elixir-hl7
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
79 lines (72 loc) · 1.98 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
defmodule HL7.MixProject do
use Mix.Project
def project do
[
app: :elixir_hl7,
version: String.trim(File.read!("./VERSION")),
description: "An Elixir library for working with HL7 v2.x healthcare data",
source_url: github_link(),
package: package(),
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: [
extras: ["README.md"],
main: "readme"
],
dialyzer: [
flags: [
:error_handling,
:underspecs,
:unmatched_returns | conditional_dialyzer_flags(System.otp_release())
]
],
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
aliases: aliases()
]
end
defp aliases() do
[
"parsec.compile": [
"nimble_parsec.compile parsec_source/path_parser.ex.exs -o lib/hl7/path_parser.ex"
]
]
end
defp conditional_dialyzer_flags(otp_release) do
case String.to_integer(otp_release) do
x when x < 25 ->
[]
_ ->
[:missing_return, :extra_return]
end
end
defp github_link() do
"https://github.com/HCA-Healthcare/elixir-hl7"
end
defp package() do
[
name: "elixir_hl7",
files: ~w(lib .formatter.exs mix.exs benchmark.exs README* LICENSE* VERSION*),
licenses: ["Apache 2.0"],
links: %{"GitHub" => github_link()},
maintainers: ["Scott Southworth", "Bryan Hunter"]
]
end
defp deps do
[
{:benchee, "~> 1.1.0", only: :dev},
{:dialyxir, "~> 1.4.1", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.26.0", only: :dev, runtime: false},
{:junit_formatter, "~> 3.3.1", only: :test},
{:propcheck, "~> 1.4.1", only: [:test, :dev]},
{:nimble_parsec, "~> 1.4.0", only: [:test, :dev], runtime: false},
{:excoveralls, "~> 0.18", only: :test}
]
end
end