Current section
Files
Jump to
Current section
Files
random_user
mix.exs
mix.exs
defmodule RandomUser.Mixfile do
use Mix.Project
def project do
[app: :random_user,
version: "0.3.5",
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: cli_env_for(:test, [
"coveralls", "coveralls.detail", "coveralls.post",
"vcr", "vcr.delete", "vcr.check", "vcr.show"
]),]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more information
def application do
[applications: [:logger, :httpoison, :poison]]
end
# Dependencies
defp deps do
[
{:httpoison, "~> 1.8"},
{:poison, ">= 2.2.0"},
{:credo, "~> 1.6", only: [:dev, :test]},
{:ex_doc, "~> 0.28.5", only: :dev},
{:excoveralls, "~> 0.10", only: :test},
{:exvcr, "~> 0.11", only: :test},
{:meck, "~> 0.9", only: [:dev, :test]},
{:inch_ex, github: "rrrene/inch_ex", only: [:dev, :test]},
]
end
defp description do
"""
Random User API client for Elixir applications.
"""
end
defp cli_env_for(env, tasks) do
Enum.reduce(tasks, [], fn(key, acc) -> Keyword.put(acc, :"#{key}", env) end)
end
defp package do
[
name: :random_user,
maintainers: ["Katherine Giron Pe"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/kathgironpe/random_user"
}
]
end
end