forked from annkissam/rummage_ecto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
98 lines (86 loc) · 1.91 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
defmodule Rummage.Ecto.Mixfile do
use Mix.Project
@version "1.2.0"
@url "https://github.com/aditya7iyengar/rummage_ecto"
def project do
[
app: :rummage_ecto,
version: @version,
elixir: "~> 1.3.4",
deps: deps(),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
# Test
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [coveralls: :test],
aliases: aliases(),
elixirc_paths: elixirc_paths(Mix.env),
# Hex
description: description(),
package: package(),
# Docs
name: "Rumamge.Ecto",
docs: docs(),
]
end
def application do
[
applications: [
:logger,
:ecto,
:postgrex,
],
]
end
def package do
[
files: ["lib", "mix.exs", "README.md"],
maintainers: ["Adi Iyengar"],
licenses: ["MIT"],
links: %{"Github" => @url},
]
end
defp deps do
[
{:credo, "~> 0.5", only: [:dev, :test]},
{:ecto, "~> 2.1"},
{:excoveralls, "~> 0.3", only: :test},
{:ex_doc, "~> 0.14", only: :dev, runtime: false},
{:inch_ex, "~> 0.5", only: [:dev, :test, :docs]},
{:postgrex, ">= 0.0.0", only: [:test]},
]
end
defp description do
"""
A library that allows us to search, sort and paginate ecto queries
"""
end
def docs do
[
main: "Rummage.Ecto",
source_url: @url,
extras: ["doc_readme.md", "CHANGELOG.md"],
source_ref: "v#{@version}"
]
end
defp aliases do
[
"ecto.setup": [
"ecto.create",
"ecto.migrate"
],
"ecto.reset": [
"ecto.drop",
"ecto.setup"
],
"test": [
# "ecto.drop",
"ecto.create --quiet",
"ecto.migrate",
"test"
],
]
end
defp elixirc_paths(:test), do: ["lib", "priv", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end