-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmix.exs
116 lines (106 loc) · 2.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
defmodule Seraph.MixProject do
use Mix.Project
@version "0.2.4"
def project do
[
name: "Seraph",
app: :seraph,
version: @version,
elixir: "~> 1.8",
package: package(),
description: "A toolkit for data mapping an querying Neo4j database in Elixir",
start_permanent: Mix.env() == :prod,
docs: docs(),
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {Seraph.Application, []}
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(:dev), do: ["lib", "examples"]
defp elixirc_paths(_), do: ["lib"]
defp package() do
%{
licenses: ["Apache-2.0"],
maintainers: ["Dominique VASSARD"],
links: %{"Github" => "https://github.com/dominique-vassard/seraph"}
}
end
defp docs do
[
assets: "assets",
source_ref: "v#{@version}",
main: "readme",
extras: extras(),
groups_for_extras: groups_for_extras(),
groups_for_modules: groups_for_modules()
]
end
defp extras do
[
"README.md",
"guide/up_and_running.md",
"guide/schema.md",
"guide/creating.md",
"guide/getting.md",
"guide/setting.md",
"guide/merging.md",
"guide/deleting.md",
"guide/using_query_api.md"
]
end
defp groups_for_extras do
[
Guide: ~r/guide\/[^\/]+\.md/
]
end
defp groups_for_modules do
[
"Example Repo": [
Seraph.Example.Repo,
Seraph.Example.Repo.Node,
Seraph.Example.Repo.Relationship
],
Schema: [
Seraph.Schema.Node,
Seraph.Schema.Node.Metadata,
Seraph.Schema.Relationship,
Seraph.Schema.Relationship.Metadata
],
"(Not) Loaded struct info": [
Seraph.Schema.Node.NotLoaded,
Seraph.Schema.Relationship.NotLoaded,
Seraph.Schema.Relationship.Outgoing,
Seraph.Schema.Relationship.Incoming
]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:bolt_sips, "~> 2.0"},
{:ecto, "~>3.5"},
{:uuid, "~> 1.1"},
{:inflex, "~> 2.0.0"},
# dev and test only deps
{:credo, "~> 1.1.0", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.19", only: :dev, runtime: false},
{:dialyxir, "~> 1.0.0-rc.4", only: [:dev], runtime: false},
{:excoveralls, "~> 0.10", only: :test}
]
end
end