forked from Recruitee/bow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
58 lines (50 loc) · 1.39 KB
/
mix.exs
File metadata and controls
58 lines (50 loc) · 1.39 KB
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
defmodule Bow.Mixfile do
use Mix.Project
def project do
[
app: :bow,
version: "0.2.1",
elixir: "~> 1.3",
elixirc_paths: elixirc_paths(Mix.env),
start_permanent: Mix.env == :prod,
aliases: aliases(),
deps: deps(),
test_coverage: [tool: Coverex.Task]
]
end
def application do
[
extra_applications: [:logger] ++ applications(Mix.env)
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp applications(:test) do
[
:ecto, :postgrex, # Bow.Ecto
:erlexec, # Bow.Exec
:hackney, :sweet_xml # Bow.Storage.S3
]
end
defp applications(_), do: []
defp deps do
[
{:plug, "~> 1.0"},
{:tesla, "~> 0.7"},
{:ecto_sql, "~> 3.0-rc.0", optional: true},
{:ex_aws, "~> 2.0", optional: true},
{:ex_aws_s3, "~> 2.0", optional: true},
{:sweet_xml, "~> 0.6", optional: true},
# testing & docs
{:postgrex, ">= 0.0.0",only: :test},
{:coverex, "~> 1.4", only: :test},
{:ex_doc, "~> 0.16", only: :dev},
{:mix_test_watch, "~> 0.5", only: :dev},
{:dialyxir, "~> 0.5", only: :dev}
]
end
def aliases do
["ecto.setup": ["ecto.create --quiet", "ecto.migrate --quiet"],
"ecto.reset": ["ecto.drop --quiet", "ecto.setup"]]
end
end