-
-
Notifications
You must be signed in to change notification settings - Fork 556
/
mix.exs
89 lines (75 loc) · 2.12 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
defmodule Ockam.Healthcheck.MixProject do
use Mix.Project
@version "0.10.1"
@elixir_requirement "~> 1.10"
@ockam_github_repo "https://github.com/build-trust/ockam"
@ockam_github_repo_path "implementations/elixir/ockam/ockam_healthcheck"
def project do
[
app: :ockam_healthcheck,
version: @version,
elixir: @elixir_requirement,
consolidate_protocols: Mix.env() != :test,
elixirc_options: [warnings_as_errors: true],
deps: deps(),
aliases: aliases(),
# lint
dialyzer: [flags: [:error_handling]],
# test
test_coverage: [output: "_build/cover"],
preferred_cli_env: ["test.cover": :test],
elixirc_paths: elixirc_paths(Mix.env()),
# hex
description: "Ockam Healthcheck",
package: package(),
# docs
name: "Ockam Healthcheck",
docs: docs()
]
end
# mix help compile.app for more
def application do
[
mod: {Ockam.Healthcheck.Application, []},
extra_applications: [:logger, :ockam]
]
end
defp deps do
[
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.1", only: [:dev], runtime: false},
{:ex_doc, "~> 0.25", only: :dev, runtime: false},
{:ockam_services, path: "../ockam_services"},
{:ockam_metrics, path: "../ockam_metrics"},
{:sched_ex, "~> 1.0"},
{:jason, "~> 1.3"}
]
end
# used by hex
defp package do
[
links: %{"GitHub" => @ockam_github_repo},
licenses: ["Apache-2.0"]
]
end
defp elixirc_paths(:test), do: ["lib", "test/helpers"]
defp elixirc_paths(_), do: ["lib"]
# used by ex_doc
defp docs do
[
main: "Ockam.Healthcheck",
source_url_pattern:
"#{@ockam_github_repo}/blob/v#{@version}/#{@ockam_github_repo_path}/%{path}#L%{line}"
]
end
defp aliases do
[
docs: "docs --output _build/docs --formatter html",
"lint.format": "format --check-formatted",
"lint.credo": "credo --strict",
"lint.dialyzer": "dialyzer --format dialyxir",
lint: ["lint.format", "lint.credo"],
"test.cover": "test --cover"
]
end
end