-
Notifications
You must be signed in to change notification settings - Fork 73
/
mix.exs
120 lines (113 loc) · 3.05 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
117
118
119
120
defmodule Elasticsearch.Mixfile do
use Mix.Project
def project do
[
app: :elasticsearch,
description: "Elasticsearch without DSLs",
source_url: "https://github.com/danielberkompas/elasticsearch-elixir",
version: "1.1.0",
elixir: "~> 1.5",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.semaphore": :test
],
docs: docs(),
deps: deps(),
package: package(),
aliases: aliases()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
mod: {Elasticsearch.Application, []}
]
end
def package do
[
files: ~w(
lib
CHANGELOG.md
LICENSE
README.md
mix.exs
priv
),
maintainers: ["Daniel Berkompas"],
licenses: ["MIT"],
links: %{
"GitHub" => "https://github.com/danielberkompas/elasticsearch-elixir"
}
]
end
# Specifies which paths to compile per environment
defp elixirc_paths(env) when env in ~w(test dev)a, do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:poison, ">= 0.0.0", optional: true},
{:httpoison, ">= 0.0.0"},
{:telemetry, "~> 0.4.3 or ~> 1.0"},
{:vex, "~> 0.6"},
{:sigaws_otp_24, "~> 1.0", optional: true},
{:postgrex, ">= 0.0.0", only: [:dev, :test]},
{:ex_doc, ">= 0.0.0", only: [:dev, :test]},
{:ecto, ">= 0.0.0", only: [:dev, :test]},
{:ecto_sql, ">= 0.0.0", only: [:dev, :test]},
{:excoveralls, ">= 0.0.0", only: :test}
]
end
defp docs do
[
main: "readme",
extras: [
"README.md",
"guides/deployment/distillery.md": [title: "Distillery"],
"guides/upgrading/0.4.x_to_0.5.x.md": [title: "0.4.x to 0.5.x"],
"guides/upgrading/0.3.x_to_0.4.x.md": [title: "0.3.x to 0.4.x"],
"guides/upgrading/0.2.x_to_0.3.x.md": [title: "0.2.x to 0.3.x"],
"guides/upgrading/0.1.x_to_0.2.x.md": [title: "0.1.x to 0.2.x"]
],
extra_section: "GUIDES",
groups_for_extras: [
Deployment: ~r/deployment/,
Upgrading: ~r/upgrading/
],
groups_for_modules: [
API: [
Elasticsearch,
Elasticsearch.API,
Elasticsearch.API.HTTP
],
Config: [
Elasticsearch.Cluster
],
Indexing: [
Elasticsearch.Index,
Elasticsearch.Index.Bulk
],
Storage: [
Elasticsearch.DataStream,
Elasticsearch.Document,
Elasticsearch.Store
],
Development: [
Elasticsearch.Executable
]
]
]
end
defp aliases do
[
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"]
]
end
end