-
-
Notifications
You must be signed in to change notification settings - Fork 46
/
mix.exs
115 lines (105 loc) · 2.82 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
defmodule K8s.MixProject do
use Mix.Project
@app :k8s
@source_url "https://github.com/coryodaniel/#{@app}"
@version "2.6.1"
def project do
[
app: @app,
description: "Kubernetes API Client for Elixir",
version: @version,
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: cli_env(),
docs: docs(),
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
dialyzer: dialyzer(),
xref: [exclude: [:cover]]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
mod: {K8s.Application, []},
extra_applications: [:logger]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:castore, "~> 1.0"},
{:yaml_elixir, "~> 2.8"},
{:jason, "~> 1.0"},
{:mint, "~> 1.0"},
{:mint_web_socket, "~> 1.0"},
{:poolboy, "~> 1.5"},
{:telemetry, "~> 1.0"},
# dev/test deps (e.g. code coverage)
{:inch_ex, github: "rrrene/inch_ex", only: [:dev, :test]},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:test, :dev], runtime: false},
{:ex_doc, "~> 0.27", only: :dev, runtime: false},
{:excoveralls, "~> 0.14", only: [:test]},
{:mix_test_watch, "~> 1.1", only: :dev, runtime: false}
]
end
defp package do
[
name: @app,
maintainers: ["Cory O'Daniel", "Michael Ruoss"],
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
"Changelog" => "https://hexdocs.pm/#{@app}/changelog.html"
},
files: ["lib", "mix.exs", "README*", "LICENSE*", "CHANGELOG.md"]
]
end
defp docs do
[
extras: [
"README.md",
"CHANGELOG.md",
"guides/advanced.md",
"guides/authentication.md",
"guides/connections.md",
"guides/discovery.md",
"guides/middleware.md",
"guides/migrations.md",
"guides/observability.md",
"guides/operations.md",
"guides/testing.md",
"guides/usage.md"
],
groups_for_extras: [
Guides: Path.wildcard("guides/*.md")
],
main: "readme",
source_ref: @version,
source_url: @source_url,
formatters: ["html"]
]
end
defp cli_env do
[
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.travis": :test
]
end
defp dialyzer do
[
ignore_warnings: ".dialyzer_ignore.exs",
plt_add_apps: [:mix, :eex],
plt_core_path: "priv/plts",
plt_file: {:no_warn, "priv/plts/#{@app}.plt"}
]
end
end