-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
58 lines (50 loc) · 1.57 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
56
57
58
defmodule LeafThrough.Mixfile do
use Mix.Project
@version "0.2.0"
def project do
[
app: :leaf_through,
version: @version,
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
elixirc_paths: elixirc_paths(Mix.env),
deps: deps(),
description: description(),
package: package(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: ["coveralls": :test, "coveralls.detail": :test, "coveralls.post": :test, "coveralls.html": :test]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def application do
[applications: applications(Mix.env)]
end
defp applications(:test), do: applications(:dev) ++ [:sqlite_ecto2, :ecto, :ex_machina, :faker]
defp applications(:dev), do: [:logger]
defp applications(_all), do: []
defp deps do
[
{:ecto, "~> 2.0"},
{:ex_doc, "~> 0.15", only: :docs},
{:excoveralls, "~> 0.6", only: :test},
{:ex_machina, "~> 2.0", only: :test},
{:faker, "~> 0.8", only: :test},
{:sqlite_ecto2, "~> 2.2", only: :test}
]
end
defp description do
"""
Painless pagination for Ecto queries.
"""
end
defp package do
[
maintainers: ["Brian Gamble"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => "https://github.com/gentlelionstudios/leaf_through"},
files: ~w(lib mix.exs README.md)
]
end
end