-
Notifications
You must be signed in to change notification settings - Fork 8
/
mix.exs
58 lines (50 loc) · 1.38 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
defmodule SmsBlitz.Mixfile do
use Mix.Project
def project do
[app: :sms_blitz,
version: "0.2.0",
elixir: "~> 1.0",
description: "Send SMS messages through various different suppliers",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(Mix.env),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: ["coveralls": :test, "coveralls.detail": :test, "coveralls.post": :test],
package: package(),
dialyzer: [ignore_warnings: "dialyzer.ignore-warnings"]]
end
def application do
[applications: [:logger, :httpoison]]
end
defp deps(:test) do
deps(:all) ++ [{:excoveralls, "~> 0.8"}, {:mock, "~> 0.3.1"}]
end
defp deps(:docs) do
deps(:all) ++ [
{:inch_ex, "~> 0.5", only: :docs},
]
end
defp deps(:dev) do
deps(:all) ++ [
{:dialyxir, "~> 0.5.1", only: :dev},
{:ex_doc, "~> 0.18.3", only: :dev},
{:earmark, "~> 1.2", only: :dev}
]
end
defp deps(_), do: [
{:hackney, "~> 1.8"},
{:httpoison, "~> 1.0"},
{:poison, "~> 3.1"}
]
defp package do
[
files: ["lib", "mix.exs", "README*", "LICENSE"],
maintainers: ["John Hamelink <john@johnhamelink.com>"],
licenses: ["MIT"],
links: %{
"Docs" => "https://hexdocs.pm/sms_blitz",
"GitHub" => "https://github.com/johnhamelink/sms_blitz"
}
]
end
end