Packages
k8s
1.1.7
2.8.0
2.7.0
2.6.2
2.6.1
2.6.0
2.5.0
2.4.2
2.4.1
2.4.0
2.3.0
2.2.0
2.1.1
2.1.0
2.0.3
2.0.2
2.0.1
2.0.0
2.0.0-rc.6
2.0.0-rc.5
2.0.0-rc.4
2.0.0-rc.3
2.0.0-rc.2
2.0.0-rc.1
2.0.0-rc.0
1.2.1
1.2.0
1.1.10
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.0
1.0.0-rc1
0.5.2
0.5.1
0.5.0
0.5.0-rc.2
0.5.0-rc.1
0.4.0
0.3.2
0.3.1
0.3.0
0.2.13
0.2.12
0.2.11
0.2.10
0.2.9
0.2.8
0.2.7
retired
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.3
Kubernetes API Client for Elixir
Current section
Files
Jump to
Current section
Files
mix.exs
defmodule K8s.MixProject do
use Mix.Project
@source_url "https://github.com/coryodaniel/k8s"
@version "1.1.7"
def project do
[
app: :k8s,
description: "Kubernetes API Client for Elixir",
version: @version,
elixir: "~> 1.9",
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
[
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, "~> 0.1"},
{:yaml_elixir, "~> 2.8"},
{:httpoison, "~> 1.7"},
{:jason, "~> 1.0"},
{: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: :k8s,
maintainers: ["Cory O'Daniel"],
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
"Changelog" => "https://hexdocs.pm/k8s/changelog.html"
},
files: ["lib", "mix.exs", "README*", "LICENSE*", "CHANGELOG.md"]
]
end
defp docs do
[
extras: [
"README.md",
"CHANGELOG.md",
"guides/usage.md",
"guides/operations.md",
"guides/connections.md",
"guides/middleware.md",
"guides/authentication.md",
"guides/discovery.md",
"guides/advanced.md",
"guides/testing.md",
"guides/observability.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/k8s.plt"}
]
end
end