-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
98 lines (90 loc) · 2.55 KB
/
Copy pathmix.exs
File metadata and controls
98 lines (90 loc) · 2.55 KB
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
95
96
97
98
defmodule Brama.MixProject do
use Mix.Project
@version "1.1.0"
@source_url "https://github.com/ihorkatkov/brama"
@description "An Elixir-native circuit breaker library for reliable connection management with external dependencies"
def project do
[
app: :brama,
version: @version,
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: [
plt_file: {:no_warn, "priv/plts/dialyzer.plt"},
plt_add_apps: [:ex_unit, :mix],
plt_core_path: "priv/plts/",
ignore_warnings: ".dialyzer_ignore.exs"
],
# Test coverage
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
elixirc_paths: elixirc_paths(Mix.env()),
# Hex.pm package information
description: @description,
package: package(),
docs: docs(),
name: "Brama",
source_url: @source_url
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {Brama.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:sobelow, "~> 0.13", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.18", only: :test},
{:ex_doc, "~> 0.30", only: [:dev, :test, :docs], runtime: false},
{:telemetry, "~> 1.2"},
{:decorator, "~> 1.4"}
]
end
defp package do
[
name: "brama",
maintainers: ["Ihor Katkov"],
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
"Docs" => "https://hexdocs.pm/brama"
},
files: ~w(lib .formatter.exs mix.exs README.md LICENSE SPECS.md)
]
end
defp docs do
[
main: "readme",
extras: [
"README.md",
"SPECS.md",
"specs/architecture.md",
"specs/circuit_breaking.md",
"specs/status_notifications.md",
"specs/connection_monitoring.md",
"specs/self_healing.md",
"specs/failure_isolation.md",
"specs/configuration.md",
"specs/testing_strategy.md",
"specs/api.md"
],
source_url: @source_url,
source_ref: "v#{@version}",
formatters: ["html"]
]
end
end