/
mix.exs
76 lines (70 loc) · 2.07 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
defmodule Differ.MixProject do
use Mix.Project
def project do
[
app: :differ,
version: "0.1.1",
source_url: "https://github.com/DanilaMihailov/differ",
homepage_url: "https://github.com/DanilaMihailov/differ",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
description: description(),
package: package(),
# test coverage
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
dialyzer: [flags: [:unmatched_returns, :error_handling, :race_conditions, :underspecs]],
# for testing protocols
consolidate_protocols: Mix.env() != :test
]
end
def application do
[]
end
defp deps do
[
# 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},
# benchmarks (mix run benchmarks/script_name.exs)
{:benchee, "~> 1.0", only: :dev, runtime: false},
{:benchee_html, "~> 1.0", only: :dev},
# mix docs.build
{:docs_getter, "~> 0.1-pre", only: :dev, runtime: false}
]
end
defp description() do
"Small library for creating diffs and applying them."
end
defp package() do
[
licenses: ["Apache-2.0"],
links: %{"GitHub" => "https://github.com/DanilaMihailov/differ"}
]
end
defp docs do
[
main: "readme",
groups_for_modules: [
Protocols: ~r/able/
],
extras: [
"README.md": [title: "README"]
]
]
end
end