-
Notifications
You must be signed in to change notification settings - Fork 69
/
mix.exs
164 lines (156 loc) · 4.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
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
defmodule NervesHub.MixProject do
use Mix.Project
def project do
[
app: :nerves_hub,
version: "2.0.0+#{build()}",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
preferred_cli_env: [
docs: :docs
],
elixirc_paths: elixirc_paths(Mix.env()),
elixir: "~> 1.17.2",
releases: [
nerves_hub: [
steps: [:assemble],
include_executables_for: [:unix],
applications: [
opentelemetry_exporter: :permanent,
opentelemetry: :temporary,
nerves_hub: :permanent
]
]
],
dialyzer: [
flags: [:missing_return, :extra_return, :unmatched_returns, :error_handling, :underspecs],
plt_add_apps: [:ex_unit, :mix]
]
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
mod: {NervesHub.Application, []},
extra_applications: [
:base62,
:inets,
:jason,
:logger,
:os_mon,
:runtime_tools,
:timex,
:crypto,
:public_key
]
]
end
defp build() do
cmd = "git rev-parse --short=8 HEAD"
case System.shell(cmd, stderr_to_stdout: true) do
{sha, 0} -> String.trim(sha)
_ -> "dev"
end
end
# Dependencies listed here are available only for this
# project and cannot be accessed from applications inside
# the apps folder.
#
# Run "mix help deps" for examples and options.
defp deps do
[
{:mix_test_watch, "~> 1.0", only: :test, runtime: false},
{:recon, "~> 2.5"},
{:assert_eventually, "~> 1.0.0", only: [:dev, :test]},
{:bandit, "~> 1.0"},
{:base62, "~> 1.2"},
{:bcrypt_elixir, "~> 3.0"},
{:castore, "~> 1.0"},
{:circular_buffer, "~> 0.4.1"},
{:comeonin, "~> 5.3"},
{:contex, "~> 0.5.0"},
{:crontab, "~> 1.1"},
{:decorator, "~> 1.2"},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:ecto, "~> 3.8", override: true},
{:ecto_psql_extras, "~> 0.7"},
{:ecto_sql, "~> 3.0"},
{:ex_aws, "~> 2.0"},
{:ex_aws_s3, "~> 2.0"},
{:finch, "~> 0.19.0"},
{:floki, ">= 0.27.0", only: :test},
{:gen_smtp, "~> 1.0"},
{:gettext, "~> 0.26.1"},
{:hackney, "~> 1.16"},
{:hlclock, "~> 1.0"},
{:jason, "~> 1.2", override: true},
{:libcluster_postgres, "~> 0.1.2"},
{:logfmt_ex, "~> 0.4"},
{:mox, "~> 1.0", only: [:test, :dev]},
{:nimble_csv, "~> 1.1"},
{:oban, "~> 2.11"},
{:opentelemetry_exporter, "~> 1.8"},
{:opentelemetry, "~> 1.5"},
{:opentelemetry_api, "~> 1.4"},
{:opentelemetry_ecto, "~> 1.2"},
{:opentelemetry_phoenix, "~> 2.0.0-rc.1 "},
{:opentelemetry_oban, "~> 1.0",
git: "https://github.com/joshk/opentelemetry-erlang-contrib",
branch: "update-obans-semantic-conventions",
subdir: "instrumentation/opentelemetry_oban"},
{:opentelemetry_bandit, "~> 0.2.0-rc.1"},
{:open_telemetry_decorator, "~> 1.5"},
{:phoenix, "~> 1.7.0"},
{:phoenix_ecto, "~> 4.0"},
{:phoenix_html, "~> 3.3.1", override: true},
{:phoenix_live_dashboard, "~> 0.8"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:phoenix_live_view, "~> 0.20.1"},
{:phoenix_pubsub, "~> 2.0"},
{:phoenix_swoosh, "~> 1.0"},
{:phoenix_view, "~> 2.0"},
{:phoenix_test, "~> 0.3.0", only: :test, runtime: false},
{:plug, "~> 1.7"},
{:postgrex, "~> 0.14"},
{:sentry, "~> 10.0"},
{:slipstream, "~> 1.0", only: [:test, :dev]},
{:sweet_xml, "~> 0.6"},
{:swoosh, "~> 1.12"},
{:telemetry_metrics, "~> 1.0"},
{:telemetry_metrics_statsd, "~> 0.7.0"},
{:telemetry_poller, "~> 1.0"},
{:timex, "~> 3.1"},
{:uuidv7, "~> 1.0"},
{:x509, "~> 0.5.1 or ~> 0.6"},
{:flop, "~> 0.26.1"}
]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to create, migrate and run the seeds file at once:
#
# $ mix ecto.setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
[
"assets.setup": ["assets.install", "assets.build"],
"ecto.setup": [
"ecto.create",
"ecto.migrate",
"run priv/repo/seeds.exs"
],
"ecto.reset": ["ecto.drop", "ecto.setup"],
"ecto.migrate.reset": ["ecto.drop", "ecto.create", "ecto.migrate"],
"ecto.migrate.redo": ["ecto.rollback", "ecto.migrate"],
test: ["ecto.create --quiet", "ecto.migrate", "test"]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(env) when env in [:dev, :test],
do: ["lib", "test/support"]
defp elixirc_paths(_),
do: ["lib"]
end