-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
48 lines (43 loc) · 989 Bytes
/
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
defmodule Exql.MixProject do
use Mix.Project
def project do
[
app: :exql,
version: "0.1.0",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: preferred_cli_env(),
dialyzer: dialyzer()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:postgrex, ">= 0.0.0", optional: true},
{:excoveralls, "~> 0.12", only: :test},
{:credo, "~> 1.0", only: [:dev], runtime: false},
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false}
]
end
defp preferred_cli_env do
[
coveralls: :test,
"coveralls.github": :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
end
defp dialyzer do
[
plt_file: {:no_warn, "deps/dialyzer.plt"},
plt_add_apps: [:postgrex, :db_connection]
]
end
end