-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
55 lines (49 loc) · 1.39 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
defmodule Wanon.Mixfile do
use Mix.Project
def project do
[
app: :wanon,
version: "0.2.0",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
elixirc_paths: elixirc_paths(Mix.env()),
test_coverage: [tool: ExCoveralls],
test_paths: test_paths(Mix.env())
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {Wanon.Application, []}
]
end
defp test_paths(:integration), do: ["integration"]
defp test_paths(_), do: ["test"]
defp elixirc_paths(:test), do: ["test/support", "lib"]
defp elixirc_paths(:integration), do: ["integration/support", "lib"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ecto_sql, "~> 3.0"},
{:postgrex, "~> 0.14"},
{:gen_stage, "~> 0.14"},
{:poison, "~> 3.1"},
{:httpoison, "~> 1.3"},
{:excoveralls, "~> 0.10", only: [:test, :integration]},
{:mox, "~> 0.4", only: :test},
{:plug_cowboy, "~> 2.0", only: :integration},
{:distillery, "~> 2.0", runtime: false},
{:jason, "~> 1.0"}
]
end
defp aliases do
# Drop, create and migrate databases before tests
[
test: ["ecto.drop", "ecto.create", "ecto.migrate", "test --no-start"]
]
end
end