-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
78 lines (68 loc) · 1.68 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
defmodule AlertasEc.MixProject do
use Mix.Project
@version "0.1.0"
def project do
[
app: :alertas_ec,
aliases: aliases(),
preferred_cli_env: preferred_cli_env(),
version: @version,
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()),
releases: releases(),
test_coverage: [tool: ExCoveralls],
start_permanent: Mix.env() == :prod,
deps: deps()
]
end
def application do
[
mod: {AlertasEc, []},
extra_applications: [:corsica, :ecto, :logger, :plug_cowboy]
]
end
def aliases do
[
test: ["credo", "ecto.create --quiet", "ecto.migrate", "test"]
]
end
defp deps do
[
{:absinthe, "~> 1.4"},
{:absinthe_ecto, "~> 0.1"},
{:absinthe_plug, "~> 1.4"},
{:corsica, "~> 1.1"},
{:ecto_enum, "~> 1.4"},
{:ecto_sql, "~> 3.3"},
{:jason, "~> 1.1"},
{:plug_cowboy, "~> 2.1"},
{:postgrex, "~> 0.15"},
# Test dependencies
{:credo, "~> 1.5.1", only: [:dev, :test], runtime: false},
{:ex_machina, "~> 2.3", only: :test},
{:excoveralls, "~> 0.12", only: [:dev, :test]},
{:faker, "~> 0.13", only: :test},
# Docs dependencies
{:ex_doc, "~> 0.21", only: :dev}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp preferred_cli_env do
[
coveralls: :test,
"coveralls.detail": :test,
"coveralls.github": :test,
"coveralls.html": :test,
docs: :dev
]
end
defp releases do
[
production: [
include_executables_for: [:unix],
applications: [runtime_tools: :permanent]
]
]
end
end