-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
mix.exs
105 lines (95 loc) · 2.3 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
defmodule Kubegen.MixProject do
use Mix.Project
@app :kubegen
@source_url "https://github.com/mruoss/#{@app}"
@version "0.1.2"
def project do
[
app: @app,
description: "Generate resource based Kubernetes clients",
version: @version,
elixir: "~> 1.16",
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
preferred_cli_env: cli_env(),
package: package(),
test_coverage: [tool: ExCoveralls],
dialyzer: dialyzer()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:kubereq, "~> 0.4.0", optional: true},
{:owl, "~> 0.12.0"},
{:req, "~> 0.5.0"},
{:yaml_elixir, "~> 2.0"},
# Test deps
{:excoveralls, "~> 0.18", only: :test},
{:mix_test_watch, "~> 1.0", only: [:dev, :test], runtime: false},
# Dev deps
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.35", only: :dev, runtime: false},
{:dialyxir, "~> 1.4.0", only: [:dev, :test], runtime: false}
]
end
defp docs do
[
main: "readme",
source_ref: "v#{@version}",
source_url: @source_url,
extras: [
"README.md",
"CHANGELOG.md"
]
]
end
defp cli_env do
[
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.travis": :test,
"coveralls.github": :test,
"coveralls.xml": :test,
"coveralls.json": :test
]
end
defp package do
[
name: @app,
maintainers: ["Michael Ruoss"],
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
"Changelog" => "https://hexdocs.pm/#{@app}/changelog.html",
"Sponsor" => "https://github.com/sponsors/mruoss"
},
files: [
"lib",
"build",
"mix.exs",
"README.md",
"LICENSE.md",
"CHANGELOG.md",
".formatter.exs"
]
]
end
defp dialyzer do
[
ignore_warnings: ".dialyzer_ignore.exs",
plt_core_path: "priv/plts",
plt_file: {:no_warn, "priv/plts/#{@app}.plt"},
plt_add_apps: [:mix]
]
end
end