-
Notifications
You must be signed in to change notification settings - Fork 2
/
mix.exs
46 lines (41 loc) · 1.14 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
defmodule Unbrella.Mixfile do
use Mix.Project
def project do
[
app: :unbrella,
version: "1.0.2",
elixir: "~> 1.4",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
dialyzer: [plt_add_apps: [:mix]],
elixirc_paths: elixirc_paths(Mix.env()),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
aliases: aliases(),
deps: deps()
]
end
def application do
# Specify extra applications you'll use from Erlang/Elixir
[extra_applications: [:logger]]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp aliases do
[commit: ["deps.get --only #{Mix.env()}", "dialyzer", "credo --strict"]]
end
defp deps do
[
{:phoenix, "~> 1.3"},
{:phoenix_ecto, "~> 3.2"},
{:dialyxir, "~> 0.0", only: [:dev], runtime: false},
{:excoveralls, "~> 0.10", only: :test},
{:credo, "~> 1.0", only: [:dev, :test], runtime: false}
]
end
end