-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmix.exs
More file actions
113 lines (104 loc) · 2.87 KB
/
mix.exs
File metadata and controls
113 lines (104 loc) · 2.87 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
defmodule Screens.MixProject do
use Mix.Project
def project do
[
app: :screens,
version: "0.1.0",
elixir: "~> 1.17",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
dialyzer: [
plt_add_deps: :app_tree,
flags: [
:unmatched_returns
]
],
test_coverage: [tool: LcovEx]
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
apps = [:logger, :runtime_tools, :hackney_telemetry]
apps =
case Mix.env() do
:prod -> [:ehmon | apps]
:test -> [:credo | apps]
_ -> apps
end
[
mod: {Screens.Application, []},
extra_applications: apps
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp aliases do
[
"credo.ci": "credo --strict --checks-without-tag formatter"
]
end
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[
{:aja, "~> 0.7.0"},
{:corsica, "~> 2.1"},
{:ex_aws, "~> 2.1"},
{:ex_aws_polly, "~> 0.5.0"},
{:ex_aws_s3, "~> 2.1"},
{:ex_cldr_messages, "~> 1.0"},
{:gettext, "~> 0.26.1"},
{:guardian, "~> 2.4.0"},
{:hackney, "~> 1.25.0"},
{:hackney_telemetry, "~> 0.2.0"},
{:httpoison, "~> 2.3.0"},
{:jason, "~> 1.0"},
{:logster, "~> 2.0.0-rc.5"},
{:memcachex, "~> 0.5.5"},
{:nebulex, "~> 3.0.2"},
{:nebulex_local, "~> 3.0.0"},
{:phoenix, "~> 1.7.14"},
{:phoenix_html, "~> 4.0"},
{:phoenix_html_helpers, "~> 1.0"},
{:phoenix_live_dashboard, "~> 0.8.4"},
{:phoenix_pubsub, "~> 2.0"},
{:phoenix_view, "~> 2.0"},
{:plug_cowboy, "~> 2.6"},
{:recon, "~> 2.5.6"},
{:remote_ip, "~> 1.2"},
{:retry, "~> 0.19.0"},
{:screens_config, github: "mbta/screens-config-lib"},
{:sentry, "~> 11.0"},
{:sweet_xml, "~> 0.7.0"},
{:telemetry, "~> 1.2"},
{:telemetry_metrics, "~> 1.0"},
{:telemetry_poller, "~> 1.0"},
{:timex, "~> 3.6"},
{:tzdata, "~> 1.1"},
{:ueberauth, "~> 0.10"},
{:ueberauth_oidcc, "~> 0.4"},
{:unrooted_polytree, "0.1.1"}
] ++ dev_deps() ++ prod_deps()
end
defp dev_deps do
[
{:credo, "~> 1.7.17", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4.3", only: [:dev, :test], runtime: false},
{:lcov_ex, "~> 0.2", only: [:dev, :test], runtime: false},
{:mox, "~> 1.0", only: :test},
{:phoenix_live_reload, "~> 1.3", only: :dev},
{:stream_data, "~> 1.1", only: :test}
]
end
defp prod_deps do
[
{:ehmon, github: "mbta/ehmon", only: :prod}
]
end
end