forked from beam-community/bamboo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
73 lines (66 loc) · 1.78 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
defmodule Bamboo.Mixfile do
use Mix.Project
@project_url "https://github.com/thoughtbot/bamboo"
def project do
[
app: :bamboo,
version: "2.0.2",
elixir: "~> 1.6",
source_url: @project_url,
homepage_url: @project_url,
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [coveralls: :test, "coveralls.circle": :test],
elixirc_paths: elixirc_paths(Mix.env()),
description:
"Straightforward, powerful, and adapter based Elixir email library." <>
" Works with Mandrill, Mailgun, SendGrid, SparkPost, Postmark, in-memory, and test.",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
package: package(),
docs: docs(),
deps: deps(),
xref: [exclude: [IEx]]
]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more information
def application do
[
extra_applications: [:logger, :eex],
mod: {Bamboo, []}
]
end
defp package do
[
maintainers: ["German Velasco"],
licenses: ["MIT"],
links: %{"GitHub" => @project_url}
]
end
defp elixirc_paths(:test), do: elixirc_paths() ++ ["test/support"]
defp elixirc_paths(_), do: elixirc_paths()
defp elixirc_paths, do: ["lib"]
defp docs do
[
main: "readme",
extras: [
"README.md",
"guides/upgrade_to_2_0.md"
]
]
end
defp deps do
[
{:plug, "~> 1.0"},
{:mime, "~> 1.4"},
{:ex_machina, "~> 2.4", only: :test},
{:cowboy, "~> 1.0", only: [:test, :dev]},
{:excoveralls, "~> 0.13", only: :test},
{:floki, "~> 0.29", only: :test},
{:ex_doc, "~> 0.23", only: :dev},
{:hackney, ">= 1.15.2"},
{:jason, "~> 1.0", optional: true}
]
end
end