Packages

Provides standardized support for obtaining environment, version, and heartbeat information in JSON format

Current section

Files

Jump to
ex_ops mix.exs
Raw

mix.exs

defmodule ExOps.Mixfile do
use Mix.Project
def project do
[
app: :ex_ops,
version: "1.0.0",
elixir: "~> 1.6",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
description: description(),
package: package(),
test_coverage: test_coverage(),
preferred_cli_env: preferred_cli_env(),
name: "ex_ops",
source_url: "https://github.com/rentpath/ex_ops"
]
end
def application do
[
extra_applications: [:logger],
env: [
build_info_regex: ~r/:\s([\w|-]+)/,
deploy_info_regex: ~r/:\s\"(.+)\"\n/,
info_files: %{
build_info_file: "../BUILD-INFO",
deploy_info_file: "../DEPLOY-INFO",
previous_build_info_file: "../PREVIOUS-BUILD-INFO",
previous_deploy_info_file: "../PREVIOUS-DEPLOY-INFO",
}
],
]
end
defp deps do
[
{:ex_doc, ">= 0.0.0", only: :dev},
{:excoveralls, "~> 0.10", only: :test},
{:credo, "~> 0.10", only: [:dev, :test]},
{:plug, "~> 1.0"},
{:poison, "~> 3.0"},
]
end
defp description do
"""
Provides standardized support for obtaining environment, version, and heartbeat information in JSON format
"""
end
defp package do
[
name: :ex_ops,
files: ["lib", "mix.exs", "README*", "LICENSE*"],
maintainers: ["devadmin@rentpath.com", "Pasha Lifshiz <plifshiz@gmail.com>"],
links: %{"GitHub" => "https://github.com/rentpath/ex_ops"},
licenses: ["The MIT License"]
]
end
defp test_coverage do
[tool: ExCoveralls]
end
defp preferred_cli_env do
[
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
end
end