Current section
Files
Jump to
Current section
Files
mix_deploy
mix.exs
mix.exs
defmodule MixDeploy.MixProject do
use Mix.Project
@github "https://github.com/cogini/mix_deploy"
def project do
[
app: :mix_deploy,
version: "0.7.6",
elixir: "~> 1.6",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
source_url: @github,
homepage_url: @github,
docs: docs(),
dialyzer: [
plt_add_apps: [:mix, :eex],
# plt_add_deps: true,
# flags: ["-Werror_handling", "-Wrace_conditions"],
flags: ["-Wunmatched_returns", :error_handling, :race_conditions, :underspecs],
# ignore_warnings: "dialyzer.ignore-warnings"
],
deps: deps(),
releases: releases(),
]
end
defp releases do
[
mix_deploy: [
include_executables_for: [:unix],
steps: [:assemble, :tar]
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :eex]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ex_doc, "~> 0.21", only: :dev, runtime: false},
# {:mix_systemd, git: "https://github.com/cogini/mix_systemd.git"},
{:mix_systemd, "~> 0.7"},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
]
end
defp description do
"Generate deployment scripts for an application."
end
defp package do
[
maintainers: ["Jake Morrison"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => @github}
]
end
defp docs do
[
source_url: @github,
extras: ["README.md", "CHANGELOG.md"],
# api_reference: false,
source_url_pattern: "#{@github}/blob/master/%{path}#L%{line}"
]
end
end