forked from cabol/nebulex_ecto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
89 lines (75 loc) · 1.76 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
defmodule NebulexEcto.Mixfile do
use Mix.Project
@version "0.2.0"
def project do
[
app: :nebulex_ecto,
version: @version,
elixir: "~> 1.5",
deps: deps(),
# Docs
name: "NebulexEcto",
docs: docs(),
# Test
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
# Dialyzer
dialyzer: dialyzer(),
# Hex
package: package(),
description: "Ecto & Nebulex Integration – Ecto Cacheable Repo with Nebulex"
]
end
def application do
[applications: [:logger]]
end
defp deps do
[
{:nebulex, "~> 1.0"},
# Test
{:ecto, "~> 3.0", only: :test},
{:postgrex, ">= 0.0.0", only: :test},
{:excoveralls, "~> 0.6", only: :test},
# Code Analysis
{:dialyxir, "~> 0.5", optional: true, only: [:dev, :test], runtime: false},
{:credo, "~> 0.10", optional: true, only: [:dev, :test]},
# Docs
{:ex_doc, "~> 0.19", only: :docs},
{:inch_ex, "~> 1.0", only: :docs}
]
end
defp package do
[
name: :nebulex_ecto,
maintainers: ["Carlos A Bolanos"],
licenses: ["MIT"],
links: %{github: "https://github.com/cabol/nebulex_ecto"}
]
end
defp docs do
[
main: "NebulexEcto",
source_ref: "v#{@version}",
canonical: "http://hexdocs.pm/nebulex_ecto",
source_url: "https://github.com/cabol/nebulex_ecto"
]
end
defp dialyzer do
[
plt_add_apps: [],
flags: [
:unmatched_returns,
:error_handling,
:race_conditions,
:no_opaque,
:unknown,
:no_return
]
]
end
end