-
Notifications
You must be signed in to change notification settings - Fork 11
/
mix.exs
76 lines (68 loc) · 1.8 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
74
75
76
defmodule Sparrow.MixProject do
use Mix.Project
def project do
[
app: :sparrow,
version: "1.0.2",
elixir: "~> 1.13",
elixirc_paths: elixirc_paths(Mix.env()),
elixirc_options: elixirc_options(),
start_permanent: Mix.env() == :prod,
deps: deps(),
dialyzer: dialyzer(),
test_coverage: test_coverage()
]
end
def application do
[
extra_applications: [:logger],
mod: {Sparrow, []}
]
end
defp deps do
[
{:dialyxir, "~> 1.4", runtime: false, only: [:dev, :test]},
{:credo, "~> 1.7", runtime: false, only: [:dev, :test]},
{:chatterbox, github: "joedevivo/chatterbox", ref: "c0506c7"},
{:certifi, "~> 2.12"},
{:excoveralls, "~> 0.18", runtime: false, only: :test},
{:quixir, "~> 0.9", only: :test},
{:uuid, "~> 1.1"},
{:jason, "~> 1.4"},
{:joken, "~> 2.6"},
{:poison, "~> 5.0"},
{:mox, "~> 1.1", only: :test},
{:mock, "~> 0.3", only: :test},
{:meck, github: "eproxus/meck", only: :test, override: true},
{:cowboy, "~> 2.11", only: :test},
{:lager, "~> 3.9", override: true},
{:logger_lager_backend, "~> 0.2"},
{:plug, "~> 1.15", only: :test},
{:goth, "~> 1.4"},
{:httpoison, "~> 2.2"},
{:worker_pool, "~> 6.2"},
{:assert_eventually, "~> 1.0", only: [:test]},
{:telemetry, "~> 1.2"}
]
end
defp dialyzer do
[
plt_core_path: ".dialyzer",
flags: [
:unmatched_returns,
:error_handling,
:underspecs
],
plt_add_apps: [:mix, :goth]
]
end
defp test_coverage do
[tool: ExCoveralls]
end
defp elixirc_paths(:test),
do: ["lib", "test/helpers"]
defp elixirc_paths(_), do: ["lib"]
defp elixirc_options() do
[warnings_as_errors: true]
end
end