Current section

Files

Jump to
heartcheck mix.exs
Raw

mix.exs

defmodule HeartCheck.Mixfile do
use Mix.Project
def version do
"0.3.0"
end
def project do [app: :heartcheck,
version: version(),
description: "Web based monitoring/health checks",
elixir: "~> 1.2",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
elixirc_paths: elixirc_paths(Mix.env),
package: package(),
source_url: "https://github.com/locaweb/heartcheck-elixir",
homepage_url: "https://developer.locaweb.com.br/",
docs: [
main: "readme",
logo: "logo.png",
extras: ["README.md", "CONTRIBUTING.md", "LICENSE.md"],
],
test_coverage: [tool: ExCoveralls],
preferred_cli_env: ["coveralls": :test, "coveralls.detail": :test,
"coveralls.post": :test, "coveralls.html": :test],
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more information
def application do
[applications: [:logger]]
end
def package do
[
files: ["lib", "mix.exs", "README.md", "LICENSE.md",
"CONTRIBUTING.md"],
maintainers: ["Locaweb"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/locaweb/heartcheck-elixir",
"Docs" => "https://hexdocs.pm/heartcheck/#{version()}"}]
end
defp elixirc_paths(:prod), do: ["lib"]
defp elixirc_paths(_), do: ["lib", "test/support"]
# Dependencies can be Hex packages:
#
# {:mydep, "~> 0.3.0"}
#
# Or git/path repositories:
#
# {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1.0"}
#
# Type "mix help deps" for more examples and options
defp deps do
[
{:poison, "~> 2.0 or ~> 3.0"},
{:plug, "~> 1.0"},
{:cowboy, "~> 1.0", only: [:dev, :test]},
{:httpoison, "~> 0.10", only: [:dev, :test]},
{:ex_doc, "~> 0.11", only: :dev, runtime: false},
{:earmark, "~> 1.0", only: :dev},
{:credo, "~> 0.5", only: [:dev, :test]},
{:dogma, "~> 0.1", only: [:dev, :test]},
{:excoveralls, "~> 0.5", only: :test},
{:mock, "~> 0.3.0", only: :test}
]
end
end