-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
72 lines (64 loc) · 1.78 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
defmodule DifferEcto.MixProject do
use Mix.Project
def project do
[
app: :differ_ecto,
version: "0.1.0-alpha.2",
source_url: "https://github.com/DanilaMihailov/differ_ecto",
homepage_url: "https://github.com/DanilaMihailov/differ_ecto",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
docs: docs(),
# test coverage
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
def application do
[]
end
defp deps do
[
{:differ, "~> 0.1.1"},
{:ecto, "~> 3.3"},
# :dev deps below
# generating documentation (mix docs)
{:ex_doc, "~> 0.21", only: :dev, runtime: false},
# test coverage (mix coveralls.html or mix test --cover)
{:excoveralls, "~> 0.12.1", only: :test, runtime: false},
# documentation check (mix inch)
{:inch_ex, github: "rrrene/inch_ex", only: :docs, runtime: false},
# static analysis (mix dialyzer)
{:dialyxir, "~> 1.0.0-rc.7", only: [:dev], runtime: false},
# static analysis and style checks (mix credo --strict)
{:credo, "~> 1.2", only: [:dev, :test], runtime: false},
# mix docs.build
{:docs_getter, "~> 0.1-pre", only: :dev, runtime: false}
]
end
defp description() do
"Ecto.Type for Differ (and some helpers)"
end
defp package() do
[
licenses: ["Apache-2.0"],
links: %{"GitHub" => "https://github.com/DanilaMihailov/differ_ecto"}
]
end
defp docs do
[
main: "readme",
extras: [
"README.md": [title: "README"]
]
]
end
end