forked from edgehog-device-manager/edgehog
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
152 lines (143 loc) · 4.4 KB
/
mix.exs
File metadata and controls
152 lines (143 loc) · 4.4 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
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
#
# This file is part of Edgehog.
#
# Copyright 2021-2026 SECO Mind Srl
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#
defmodule Edgehog.MixProject do
use Mix.Project
def project do
[
app: :edgehog,
version: "0.11.0",
elixir: "~> 1.17",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps(),
test_coverage: [tool: ExCoveralls],
dialyzer: dialyzer_opts(Mix.env())
]
end
def cli do
[
preferred_envs: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
mod: {Edgehog.Application, []},
extra_applications: [:logger, :runtime_tools]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp dialyzer_opts(:test) do
[
plt_file: {:no_warn, "priv/plts/dialyzer.plt"},
plt_add_apps: [:ex_unit]
]
end
defp dialyzer_opts(_env), do: []
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[
{:phoenix, "~> 1.7.0"},
{:phoenix_view, "~> 2.0"},
{:phoenix_ecto, "~> 4.4"},
{:ecto_sql, "~> 3.6"},
{:postgrex, "~> 0.16"},
{:swoosh, "~> 1.3"},
{:telemetry_metrics, "~> 0.6"},
{:telemetry_poller, "~> 1.0"},
{:gettext, "~> 1.0"},
{:jason, "~> 1.2"},
{:plug_cowboy, "~> 2.5"},
{:absinthe, "~> 1.7"},
{:absinthe_plug, "~> 1.5"},
{:absinthe_relay, "~> 1.5"},
{:dataloader, "~> 1.0"},
{:astarte_client, github: "astarte-platform/astarte-client-elixir"},
{:cors_plug, "~> 3.0"},
{:x509, "~> 0.8"},
{:mox, "~> 1.0"},
{:tesla, "~> 1.4"},
{:finch, "~> 0.12", override: true},
{:waffle, "~> 1.1"},
{:envar, "~> 1.1"},
{:ex_aws, "~> 2.2"},
{:ex_aws_s3, "~> 2.0"},
{:azurex, "~> 1.1"},
{:hackney, "~> 1.9"},
{:sweet_xml, "~> 0.6"},
{:waffle_gcs, "~> 0.2"},
{:guardian, "~> 2.0"},
{:jose, "~> 1.8"},
{:skogsra, "~> 2.3"},
{:nimble_parsec, "~> 1.2"},
{:excoveralls, "~> 0.10", only: :test},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
{:pretty_log, "~> 0.1"},
{:prom_ex, "~> 1.9"},
{:plug_heartbeat, "~> 1.0"},
{:gen_state_machine, "~> 3.0"},
{:recon, "~> 2.5"},
{:observer_cli, "~> 1.7"},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false},
{:ash, "~> 3.0"},
{:ash_postgres, "~> 2.0"},
{:ash_graphql, "~> 1.0"},
{:ash_json_api, "~> 1.3"},
{:picosat_elixir, "~> 0.2"},
{:styler, "~> 1.9", only: [:dev, :test], runtime: false},
{:open_api_spex, "~> 3.16"},
{:ymlr, "~> 5.1"},
{:sourceror, "~> 1.10", only: [:dev, :test]},
{:phoenix_pubsub, "~> 2.0"},
{:absinthe_phoenix, "~> 2.0"},
{:mix_audit, "~> 2.1", only: [:dev, :test], runtime: false},
{:sobelow, "~> 0.13", only: [:dev, :test], runtime: false}
]
end
# Aliases are shortcuts or tasks specific to the current project.
# For example, to install project dependencies and perform other setup tasks, run:
#
# $ mix setup
#
# See the documentation for `Mix` for more info on aliases.
defp aliases do
[
setup: ["deps.get", "ecto.setup"],
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"],
# Workaround for https://github.com/ash-project/spark/issues/78
format: ["compile", "format"]
]
end
end