Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Exdocker.MixProject do
use Mix.Project
@version "0.1.0"
@source_url "https://github.com/dallagi/exdocker"
def project do
[
app: :exdocker,
description: "Yet another Elixir wrapper for the Docker Engine API",
version: @version,
elixir: "~> 1.11",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
package: [
links: %{"GitHub" => @source_url},
licenses: ["MIT"]
],
docs: [
main: "readme",
extras: ["README.md", "LICENSE"],
source_ref: "v#{@version}",
source_url: @source_url
]
]
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
[
{:httpoison, "~> 1.8"},
{:jason, "~> 1.2"},
{:typed_struct, "~> 0.2"}
] ++ dev_deps()
end
defp dev_deps do
[
{:credo, "~> 1.5", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev], runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:excoveralls, "~> 0.13", only: :test}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end