Current section

Files

Jump to
extwitter mix.exs
Raw

mix.exs

defmodule ExTwitter.Mixfile do
use Mix.Project
@source_url "https://github.com/parroty/extwitter"
@version "0.13.0"
def project do
[
app: :extwitter,
version: @version,
elixir: ">= 1.4.0",
deps: deps(),
docs: docs(),
package: package(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env:
cli_env_for(:test, [
"coveralls",
"coveralls.detail",
"coveralls.post",
"vcr",
"vcr.delete",
"vcr.check",
"vcr.show"
]),
]
end
defp cli_env_for(env, tasks) do
Enum.reduce(tasks, [], fn key, acc -> Keyword.put(acc, :"#{key}", env) end)
end
def application do
[
mod: {ExTwitter, []},
applications: [:inets, :ssl, :crypto, :logger]
]
end
def deps do
[
{:oauther, "~> 1.3"},
{:jason, "~> 1.1"},
{:exvcr, "~> 0.8", only: :test},
{:excoveralls, "~> 0.13", only: :test},
{:meck, "~> 0.8.13", only: [:dev, :test]},
{:mock, "~> 0.2", only: [:dev, :test]},
{:ex_doc, ">= 0.0.0", only: [:dev, :docs], runtime: false},
{:inch_ex, "~> 2.0", only: :docs},
{:benchfella, "~> 0.3.3", only: :dev}
]
end
defp docs do
[
extras: [
"CHANGELOG.md": [],
"LICENSE.md": [title: "License"],
"README.md": [title: "Overview"]
],
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
formatters: ["html"]
]
end
defp package do
[
description: "Twitter client library for Elixir.",
maintainers: ["parroty"],
licenses: ["MIT"],
links: %{
"Changelog" => "https://hexdocs.pm/extwitter/changelog.html",
"GitHub" => @source_url
}
]
end
end