-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix.exs
47 lines (42 loc) · 1.05 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
defmodule Rinha.MixProject do
use Mix.Project
def project do
[
app: :rinha,
version: "0.2.3",
elixir: "~> 1.15",
elixirc_paths: elixirc_paths(Mix.env()),
elixirc_options: [debug_info: Mix.env() == :dev],
build_embedded: Mix.env() not in [:dev, :test],
start_permanent: Mix.env() not in [:dev, :test],
aliases: aliases(),
deps: deps()
]
end
defp aliases do
[
"ecto.setup": ["ecto.create --quiet", "ecto.migrate --quiet"]
]
end
def application do
[
extra_applications: [:logger],
mod: {Rinha.Application, []}
]
end
defp deps do
[
{:bandit, "1.0.0-pre.13"},
{:bigflake, "~> 0.5.0"},
{:corsica, "~> 2.1.2"},
{:ecto_sql, "~> 3.10.1"},
{:etag_plug, "~> 1.0.0"},
{:jason, "~> 1.4.1"},
{:plug, "~> 1.14.2"},
{:postgrex, ">= 0.17.2"},
{:tapex, github: "rwillians/tapex", ref: "46900d4", only: :test}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end